pintracker: Remove unnecessary locking
This commit is contained in:
parent
5e89c0ba41
commit
60c6b16ac6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user