Files
isp-config-service/raft/network.go
T
2019-10-30 14:00:46 +03:00

16 lines
270 B
Go

package raft
import (
"github.com/hashicorp/raft"
"net"
"time"
)
type StreamLayer struct {
net.Listener
}
func (r *StreamLayer) Dial(address raft.ServerAddress, timeout time.Duration) (net.Conn, error) {
return net.DialTimeout("tcp", string(address), timeout)
}