Remove extraneous mutex locks

This commit is contained in:
Peter Stuifzand 2019-02-16 07:40:26 +01:00
parent 5a2f6b1844
commit e2361daa0e
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -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()