mirror of
https://github.com/status-im/status-go.git
synced 2025-01-11 23:25:29 +00:00
0babdad17b
* chore: upgrade go-waku to v0.5 * chore: add println and logs to check what's being stored in the enr, and preemptively delete the multiaddr field (#3219) * feat: add wakuv2 test (#3218)
15 lines
264 B
Go
15 lines
264 B
Go
package metricshelper
|
|
|
|
import "github.com/libp2p/go-libp2p/core/network"
|
|
|
|
func GetDirection(dir network.Direction) string {
|
|
switch dir {
|
|
case network.DirOutbound:
|
|
return "outbound"
|
|
case network.DirInbound:
|
|
return "inbound"
|
|
default:
|
|
return "unknown"
|
|
}
|
|
}
|