backend/consul: some comments

This commit is contained in:
Mitchell Hashimoto 2017-03-01 23:01:28 -08:00
parent b842fd0c27
commit 35afb7bc86
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ func (b *Backend) DeleteState(name string) error {
// Determine the path of the data
path := b.path(name)
// Delete it
// Delete it. We just delete it without any locking since
// the DeleteState API is documented as such.
_, err = client.KV().Delete(path, nil)
return err
}