Dmitry eeca435064 Add rendezvous implementation for discovery interface
Update vendor

Integrate rendezvous into status node

Add a test with failover using rendezvous

Use multiple servers in client

Use discovery V5 by default and test that node can be started with rendezvous discovet

Fix linter

Update rendezvous client to one with instrumented stream

Address feedback

Fix test with updated topic limits

Apply several suggestions

Change log to debug for request errors because we continue execution

Remove web3js after rebase

Update rendezvous package
2018-07-25 15:10:57 +03:00

32 lines
783 B
Go

package reuseport
import (
"context"
"net"
)
// TODO. for now, just pass it over to net.Listen/net.Dial
func listen(network, address string) (net.Listener, error) {
return net.Listen(network, address)
}
func listenPacket(netw, laddr string) (net.PacketConn, error) {
return net.ListenPacket(netw, laddr)
}
func listenStream(netw, addr string) (net.Listener, error) {
return listen(netw, addr)
}
func dial(ctx context.Context, dialer net.Dialer, network, address string) (net.Conn, error) {
return dialer.DialContext(ctx, network, address)
}
// on windows, we just use the regular functions. sources
// vary on this-- some claim port reuse behavior is on by default
// on some windows systems. So we try. may the force be with you.
func available() bool {
return true
}