Merge branch 'refs/heads/test/add-stopwatch' into deploy/peer-performance

This commit is contained in:
bcmmbaga
2024-05-06 14:29:22 +03:00
2 changed files with 12 additions and 19 deletions

View File

@@ -3,7 +3,6 @@ package server
import (
"fmt"
"net"
"runtime/debug"
"strings"
"time"
@@ -290,7 +289,6 @@ func (am *DefaultAccountManager) DeletePeer(accountID, peerID, userID string) er
// GetNetworkMap returns Network map for a given peer (omits original peer from the Peers result)
func (am *DefaultAccountManager) GetNetworkMap(peerID string) (*NetworkMap, error) {
log.Debugf("GetNetworkMap with trace: %s", string(debug.Stack()))
account, err := am.Store.GetAccountByPeerID(peerID)
if err != nil {
return nil, err