update function signature and call (#12806)

This commit is contained in:
swayne275 2021-10-11 18:21:38 -06:00 committed by GitHub
parent 3501507557
commit 2edac287ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1968,7 +1968,9 @@ func (s standardUnsealStrategy) unseal(ctx context.Context, logger log.Logger, c
if err := c.setupMounts(ctx); err != nil {
return err
}
enterpriseSetupAPILock(c)
if err := enterpriseSetupAPILock(c, ctx); err != nil {
return err
}
if err := c.setupPolicyStore(ctx); err != nil {
return err
}
@ -2211,7 +2213,7 @@ func stopReplicationImpl(c *Core) error {
return nil
}
func setupAPILockImpl(c *Core) {}
func setupAPILockImpl(_ *Core, _ context.Context) error { return nil }
func (c *Core) ReplicationState() consts.ReplicationState {
return consts.ReplicationState(atomic.LoadUint32(c.replicationState))