From 66a1ec0a56c0dd443555999d8a7c317d34ed6614 Mon Sep 17 00:00:00 2001 From: Sven Popping Date: Thu, 8 Mar 2018 17:02:41 +0100 Subject: [PATCH 1/2] Add missing i in comment --- manager/orchestrator/restart/restart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`. From 883afffd613e6d66479146bcd8598e8d64b8fcf7 Mon Sep 17 00:00:00 2001 From: Sven Popping Date: Fri, 16 Mar 2018 16:14:03 +0100 Subject: [PATCH 2/2] Fix typo in dump.go comment --- cmd/swarm-rafttool/dump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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