Remove extraneous mutex locks
This commit is contained in:
parent
5a2f6b1844
commit
e2361daa0e
|
@ -231,9 +231,6 @@ func (b *memoryBackend) ChannelsCreate(name string) (microsub.Channel, error) {
|
|||
func (b *memoryBackend) ChannelsUpdate(uid, name string) (microsub.Channel, error) {
|
||||
defer b.save()
|
||||
|
||||
b.lock.RLock()
|
||||
defer b.lock.RUnlock()
|
||||
|
||||
b.lock.RLock()
|
||||
c, e := b.Channels[uid]
|
||||
b.lock.RUnlock()
|
||||
|
|
Loading…
Reference in New Issue
Block a user