aboutsummaryrefslogtreecommitdiffstats
path: root/conn.go
diff options
context:
space:
mode:
Diffstat (limited to 'conn.go')
-rw-r--r--conn.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conn.go b/conn.go
index f34db81..ecd92aa 100644
--- a/conn.go
+++ b/conn.go
@@ -76,8 +76,8 @@ func (d *db) Start() {
// SetConfig applies configuration options to the db.
func (d *db) SetConfig(options ...Option) error {
- d.Store.mu.Lock()
- defer d.Store.mu.Unlock()
+ d.Store.Lock.Lock()
+ defer d.Store.Lock.Unlock()
for _, opt := range options {
if err := opt(d); err != nil {