diff --git a/cmd/swarm-rafttool/dump.go b/cmd/swarm-rafttool/dump.go index 97d90d5f1c..0b3ed10eff 100644 --- a/cmd/swarm-rafttool/dump.go +++ b/cmd/swarm-rafttool/dump.go @@ -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 diff --git a/manager/orchestrator/restart/restart.go b/manager/orchestrator/restart/restart.go index 6af44b734c..a91aab355a 100644 --- a/manager/orchestrator/restart/restart.go +++ b/manager/orchestrator/restart/restart.go @@ -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`.