diff options
author | Marc Pervaz Boocha <marcpervaz@qburst.com> | 2025-02-28 18:09:36 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <marcpervaz@qburst.com> | 2025-02-28 18:09:36 +0530 |
commit | a04c538db5df71fb8effb971cc9f9e3cc77ce3af (patch) | |
tree | f31d4f448a5b64a95e38915c8f4db3fcdad41585 /conn.go | |
parent | Resizing imporvements and typo fixes (diff) | |
download | cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar.gz cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar.bz2 cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar.lz cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar.xz cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.tar.zst cache-a04c538db5df71fb8effb971cc9f9e3cc77ce3af.zip |
Improved Concurency Part1
Diffstat (limited to 'conn.go')
-rw-r--r-- | conn.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |