Skip to content

Commit c20be9b

Browse files
committed
Regenerate & amend typo
1 parent b4f908f commit c20be9b

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

go.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ flowchart LR
88
chainlink-common --> chainlink-common/pkg/chipingress
99
chainlink-common --> chainlink-common/pkg/workflows/sdk/v2/pb
1010
chainlink-common --> chainlink-protos/billing/go
11+
chainlink-common --> chainlink-protos/storage-service
1112
chainlink-common --> freeport
1213
chainlink-common --> grpc-proxy
1314
chainlink-common --> libocr
@@ -22,6 +23,8 @@ flowchart LR
2223
click chainlink-common/pkg/workflows/sdk/v2/pb href "https://github.com/smartcontractkit/chainlink-common"
2324
chainlink-protos/billing/go --> chainlink-protos/workflows/go
2425
click chainlink-protos/billing/go href "https://github.com/smartcontractkit/chainlink-protos"
26+
chainlink-protos/storage-service
27+
click chainlink-protos/storage-service href "https://github.com/smartcontractkit/chainlink-protos"
2528
chainlink-protos/workflows/go
2629
click chainlink-protos/workflows/go href "https://github.com/smartcontractkit/chainlink-protos"
2730
freeport
@@ -42,6 +45,7 @@ flowchart LR
4245
4346
subgraph chainlink-protos-repo[chainlink-protos]
4447
chainlink-protos/billing/go
48+
chainlink-protos/storage-service
4549
chainlink-protos/workflows/go
4650
end
4751
click chainlink-protos-repo href "https://github.com/smartcontractkit/chainlink-protos"

pkg/storage/workflow_client.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
pb "github.com/smartcontractkit/chainlink-protos/storage-service/go"
1515
)
1616

17-
// WorlflowClient is a gRPC client for the node service to be used by workflow node.
18-
type WorlflowClient interface {
17+
// WorkflowClient is a gRPC client for the node service to be used by workflow node.
18+
type WorkflowClient interface {
1919
// DownloadArtifact downloads an artifact from the storage service
2020
DownloadArtifact(ctx context.Context, req *pb.DownloadArtifactRequest) (pb.NodeService_DownloadArtifactClient, error)
2121

@@ -26,7 +26,7 @@ type WorlflowClient interface {
2626
Close() error
2727
}
2828

29-
// workflowClient is a concrete implementation of WorlflowClient
29+
// workflowClient is a concrete implementation of WorkflowClient
3030
type workflowClient struct {
3131
client pb.NodeServiceClient
3232
conn *grpc.ClientConn
@@ -85,14 +85,14 @@ func (n workflowClient) DownloadArtifactStream(ctx context.Context, req *pb.Down
8585
func (n workflowClient) Close() error {
8686
err := n.conn.Close()
8787
if err != nil {
88-
n.log.Errorw("Failed to close WorlflowClient connection", "error", err)
88+
n.log.Errorw("Failed to close WorkflowClient connection", "error", err)
8989
return err
9090
}
91-
n.log.Infow("Closed WorlflowClient connection")
91+
n.log.Infow("Closed WorkflowClient connection")
9292
return nil
9393
}
9494

95-
// NodeClientOpt is a functional option type for configuring the WorlflowClient
95+
// NodeClientOpt is a functional option type for configuring the WorkflowClient
9696
type NodeClientOpt func(*nodeConfig)
9797

9898
type nodeConfig struct {
@@ -101,7 +101,7 @@ type nodeConfig struct {
101101
jwtGenerator *nodeauth.NodeJWTGenerator // Optional JWT manager for authentication
102102
}
103103

104-
// defaultNodeConfig returns a default configuration for the WorlflowClient
104+
// defaultNodeConfig returns a default configuration for the WorkflowClient
105105
func defaultNodeConfig() nodeConfig {
106106
loggerInst, _ := logger.New()
107107
return nodeConfig{
@@ -111,14 +111,14 @@ func defaultNodeConfig() nodeConfig {
111111
}
112112
}
113113

114-
// WithLogger sets the logger for the WorlflowClient
114+
// WithLogger sets the logger for the WorkflowClient
115115
func WithLogger(log logger.Logger) NodeClientOpt {
116116
return func(cfg *nodeConfig) {
117117
cfg.log = log
118118
}
119119
}
120120

121-
// WithTransportCredentials sets the transport credentials for the WorlflowClient
121+
// WithTransportCredentials sets the transport credentials for the WorkflowClient
122122
func WithTransportCredentials(creds credentials.TransportCredentials) NodeClientOpt {
123123
return func(cfg *nodeConfig) {
124124
cfg.transportCredentials = creds
@@ -131,9 +131,9 @@ func WithJWTGenerator(jwtGenerator *nodeauth.NodeJWTGenerator) NodeClientOpt {
131131
}
132132
}
133133

134-
// NewNodeClient creates a new WorlflowClient with the specified address and options
135-
// It returns a WorlflowClient which can DownloadArtifacts
136-
func NewNodeClient(ctx context.Context, address string, opts ...NodeClientOpt) (WorlflowClient, error) {
134+
// NewNodeClient creates a new WorkflowClient with the specified address and options
135+
// It returns a WorkflowClient which can DownloadArtifacts
136+
func NewNodeClient(ctx context.Context, address string, opts ...NodeClientOpt) (WorkflowClient, error) {
137137
cfg := defaultNodeConfig()
138138

139139
for _, opt := range opts {
@@ -149,7 +149,7 @@ func NewNodeClient(ctx context.Context, address string, opts ...NodeClientOpt) (
149149
return nil, err
150150
}
151151

152-
cfg.log.Infow("connected to storage service (WorlflowClient)", "address", address)
152+
cfg.log.Infow("connected to storage service (WorkflowClient)", "address", address)
153153

154154
client := pb.NewNodeServiceClient(conn)
155155

0 commit comments

Comments
 (0)