From 3a2d641c0f0cb49d2e592ed57a93b16b87463c99 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Sun, 17 Mar 2019 23:27:39 -0700 Subject: [PATCH 1/2] Update rollback.go --- vault/rollback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/rollback.go b/vault/rollback.go index 36a2e8573b03..9c984c188626 100644 --- a/vault/rollback.go +++ b/vault/rollback.go @@ -63,7 +63,7 @@ type rollbackState struct { rollbackFunc func(context.Context) error } -// Run the rollback once, retrun true if we were the one that ran it. Caller +// Run the rollback once, return true if we were the one that ran it. Caller // should hold the statelock. func (rs *rollbackState) run(ctx context.Context) (ran bool, err error) { rs.once.Do(func() { From 73e35ebcdc249e225dc7606125d49fed9ac66f8e Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Sun, 17 Mar 2019 23:34:13 -0700 Subject: [PATCH 2/2] Update rollback.go --- vault/rollback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/rollback.go b/vault/rollback.go index 9c984c188626..1031decb2bdc 100644 --- a/vault/rollback.go +++ b/vault/rollback.go @@ -250,7 +250,7 @@ func (m *RollbackManager) Rollback(ctx context.Context, path string) error { // Check for an existing attempt or start one if none rs := m.startOrLookupRollback(ctx, fullPath, false) - // Do a run here in the event an allready inflight rollback is blocked on + // Do a run here in the event an already inflight rollback is blocked on // grabbing the statelock. This prevents a deadlock in some cases where the // caller of this function holds the write statelock. ran, err := rs.run(ctx)