diff --git a/code/go/0chain.net/blobbercore/handler/handler_common.go b/code/go/0chain.net/blobbercore/handler/handler_common.go index 51eecd6e5..3c3e19460 100644 --- a/code/go/0chain.net/blobbercore/handler/handler_common.go +++ b/code/go/0chain.net/blobbercore/handler/handler_common.go @@ -125,8 +125,8 @@ func WithStatusConnectionForWM(handler common.StatusCodeResponderF) common.Statu } // Lock will compete with other CommitWrites and Challenge validation - var allocationObj *allocation.Allocation - mutex := lock.GetMutex(allocationObj.TableName(), allocationID) + + mutex := lock.GetMutex(allocation.Allocation{}.TableName(), allocationID) Logger.Info("Locking allocation", zap.String("allocation_id", allocationID)) mutex.Lock() defer mutex.Unlock()