rewrite: imp code

This commit is contained in:
Dimitry Kolyshev 2022-12-28 11:16:07 +07:00
parent 5a794411d9
commit d3bf5fcb05

View file

@ -60,9 +60,6 @@ func NewDefaultStorage(listID int, rewrites []*Item) (s *DefaultStorage, err err
rewrites: rewrites, rewrites: rewrites,
} }
s.mu.Lock()
defer s.mu.Unlock()
err = s.resetRules() err = s.resetRules()
if err != nil { if err != nil {
return nil, err return nil, err