etcd: remove assertion when creating bucket and value with the same key

This commit removes an assertion which is not needed because with etcd
we can safely create keys and values with the same key since they are
stored under different keys in the DB. This saves us one unnecessary Get
on every Put.
This commit is contained in:
Andras Banki-Horvath committed 2021-07-16 16:06:32 +02:00
1 parent 11a44a94b1
commit 96caa6f242
6 files changed
+63 -8

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
// +build !dev
package etcd
const (
// Switch off extra debug code.
etcdDebug = false
)