[#211] blobstor: Remove global lock

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-25 14:30:48 +03:00 committed by Alex Vanin
parent 59f7cf9873
commit 53b114cf8b
5 changed files with 0 additions and 16 deletions

View file

@ -28,9 +28,6 @@ type PutRes struct {
// Returns any error encountered that
// did not allow to completely save the object.
func (b *BlobStor) Put(prm *PutPrm) (*PutRes, error) {
b.mtx.Lock()
defer b.mtx.Unlock()
// marshal object
data, err := prm.obj.Marshal()
if err != nil {