Skip to content

Commit

Permalink
Udpate broken comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DeividasK committed Feb 1, 2024
1 parent 516b50e commit 456a2e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/capabilities/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 456a2e4

Please sign in to comment.