pintracker: Remove unnecessary locking

This commit is contained in:
Hector Sanjuan 2022-01-28 19:35:46 +01:00
parent 5e89c0ba41
commit 60c6b16ac6

View File

@ -110,11 +110,7 @@ func (op *Operation) String() string {
// Cid returns the Cid associated to this operation.
func (op *Operation) Cid() cid.Cid {
var c cid.Cid
op.mu.RLock()
c = op.pin.Cid
op.mu.RUnlock()
return c
return op.pin.Cid
}
// Context returns the context associated to this operation.