Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/swarm-rafttool/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func loadData(swarmdir, unlockKey string) (*storage.WALData, *raftpb.Snapshot, e

_, err := os.Stat(walDir)
if err == nil {
// Encrypted WAL is present
// Encrypted WAL if present
krw, err := getKRW(swarmdir, unlockKey)
if err != nil {
return nil, nil, err
Expand Down
2 changes: 1 addition & 1 deletion manager/orchestrator/restart/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *Supervisor) waitRestart(ctx context.Context, oldDelay *delayedStart, cl
}
}

// Restart initiates a new task to replace t if appropriate under the service's
// Restart initiates a new task to replace it if appropriate under the service's
// restart policy.
func (r *Supervisor) Restart(ctx context.Context, tx store.Tx, cluster *api.Cluster, service *api.Service, t api.Task) error {
// TODO(aluzzardi): This function should not depend on `service`.
Expand Down