add cpu profiling endpoint

This commit is contained in:
abhishek9686
2024-11-07 18:18:08 +04:00
parent bb06ddaabe
commit 16b693815f
5 changed files with 46 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ var NodesAllowedACLMutex = &sync.Mutex{}
// AreNodesAllowed - checks if nodes are allowed to communicate in their network ACL
func AreNodesAllowed(networkID NetworkID, node1, node2 NodeID) bool {
return true
NodesAllowedACLMutex.Lock()
defer NodesAllowedACLMutex.Unlock()
var currentNetworkACL, err = FetchAllACLs(networkID)