MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / TestP2PConfig

Function TestP2PConfig

config/config.go:626–632  ·  view source on GitHub ↗

TestP2PConfig returns a configuration for testing the peer-to-peer layer

()

Source from the content-addressed store, hash-verified

624
625// TestP2PConfig returns a configuration for testing the peer-to-peer layer
626func TestP2PConfig() *P2PConfig {
627 cfg := DefaultP2PConfig()
628 cfg.ListenAddress = "tcp://127.0.0.1:36656"
629 cfg.FlushThrottleTimeout = 10 * time.Millisecond
630 cfg.AllowDuplicateIP = true
631 return cfg
632}
633
634// AddrBookFile returns the full path to the address book
635func (cfg *P2PConfig) AddrBookFile() string {

Callers 2

TestConfigFunction · 0.85

Calls 1

DefaultP2PConfigFunction · 0.85

Tested by

no test coverage detected