Move write peer lock (#2364)

Moved the write peer lock to avoid latency caused by disk access

Updated the method CancelPeerRoutines to use the peer public key
This commit is contained in:
Maycon Santos
2024-07-31 21:51:45 +02:00
committed by GitHub
parent c832cef44c
commit 5ee9c77e90
3 changed files with 17 additions and 11 deletions

View File

@ -112,7 +112,7 @@ func (am *MockAccountManager) SyncAndMarkPeer(ctx context.Context, peerPubKey st
return nil, nil, nil, status.Errorf(codes.Unimplemented, "method MarkPeerConnected is not implemented")
}
func (am *MockAccountManager) CancelPeerRoutines(_ context.Context, peer *nbpeer.Peer) error {
func (am *MockAccountManager) CancelPeerRoutines(_ context.Context, peerPubKey string) error {
// TODO implement me
panic("implement me")
}