Skip to content

Commit

Permalink
fix: removed unused function flushFailedConnections
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Jun 16, 2024
1 parent a8437d5 commit 4087fdb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/task/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ func getFailedConnections(ctx context.Context) []config.TaskConnection {
return []config.TaskConnection{}
}

func flushFailedConnections(ctx context.Context) context.Context {
return context.WithValue(ctx, ctxutils.FailedRemotes, []config.TaskConnection{})
}

func addFailedConnections(ctx context.Context, con config.TaskConnection) context.Context {
current := getFailedConnections(ctx)
return context.WithValue(ctx, ctxutils.FailedRemotes, append(current, con))
Expand Down

0 comments on commit 4087fdb

Please sign in to comment.