net_transport.go
func NewNetworkTransportWithLogger(
	stream StreamLayer,
	maxPool int,
	timeout time.Duration,
	logger *log.Logger,
) *NetworkTransport {
	config := &NetworkTransportConfig{Stream: stream, MaxPool: maxPool, Timeout: timeout, Logger: logger}
	return NewNetworkTransportWithConfig(config)
}
func NewNetworkTransportWithLogger(
	stream StreamLayer,
	maxPool int,
	timeout time.Duration,
	logger *log.Logger,
) *NetworkTransport {
	config := &NetworkTransportConfig{Stream: stream, MaxPool: maxPool, Timeout: timeout, Logger: logger}
	return NewNetworkTransportWithConfig(config)
}
func NewNetworkTransportWithLogger ( stream StreamLayer , maxPool int , timeout time . Duration , logger * log . Logger , ) * NetworkTransport { config := & NetworkTransportConfig { Stream : stream , MaxPool : maxPool , Timeout : timeout , Logger : logger } return NewNetworkTransportWithConfig ( config ) }
// NewNetworkTransportWithLogger creates a new network transport with the given logger, dialer
// and listener. The maxPool controls how many connections we will pool. The
// timeout is used to apply I/O deadlines. For InstallSnapshot, we multiply
// the timeout by (SnapshotSize / TimeoutScale).
NewNetworkTransportWithLogger creates a new network transport with the given logger dialer and listener . The maxPool controls how many connections we will pool . The timeout is used to apply I / O deadlines . For InstallSnapshot we multiply the timeout by ( SnapshotSize / TimeoutScale ) .