From 456a2e4c21060e2ab6dcb270cdb3a12cd3985e3b Mon Sep 17 00:00:00 2001 From: "DeividasK (YubiKey 5 Nano)" Date: Fri, 2 Feb 2024 01:20:50 +0200 Subject: [PATCH] Udpate broken comment --- core/capabilities/capability.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/capabilities/capability.go b/core/capabilities/capability.go index 5326c5731cd..49c12bd1323 100644 --- a/core/capabilities/capability.go +++ b/core/capabilities/capability.go @@ -63,6 +63,7 @@ type Metadata struct { WorkflowID string } +// CapabilityRequest is a struct for the Execute request of a capability. type CapabilityRequest struct { Metadata Metadata Config *values.Map @@ -74,7 +75,7 @@ type CallbackExecutable interface { // Capability must respect context.Done and cleanup any request specific resources // when the context is cancelled. When a request has been completed the capability // is also expected to close the callback channel. - // Request specific configuration is passed in via the inputs parameter. + // Request specific configuration is passed in via the request parameter. // A successful response must always return a value. An error is assumed otherwise. // The intent is to make the API explicit. Execute(ctx context.Context, callback chan CapabilityResponse, request CapabilityRequest) error