Delete user peers when deleting a user (#1186)

This commit is contained in:
Misha Bragin
2023-10-01 19:51:39 +02:00
committed by GitHub
parent 6ad3894a51
commit b23011fbe8
8 changed files with 83 additions and 53 deletions

View File

@@ -29,9 +29,9 @@ type MocAccountManager struct {
store *MockStore
}
func (a MocAccountManager) DeletePeer(accountID, peerID, userID string) (*Peer, error) {
func (a MocAccountManager) DeletePeer(accountID, peerID, userID string) error {
delete(a.store.account.Peers, peerID)
return nil, nil //nolint:nilnil
return nil //nolint:nil
}
func TestNewManager(t *testing.T) {