This commit is contained in:
Andrea Spacca 2021-07-08 07:58:01 +02:00
parent 94f94f27ff
commit a7a3e685fe

View file

@ -646,7 +646,7 @@ func (s *Server) Lock(token, filename string) {
return
}
func (s *Server) Unlock(token, filename string) {
func (s *Server) Unlock(token, filename string) {
key := path.Join(token, filename)
lock, _ := s.locks.LoadOrStore(key, &sync.Mutex{})