MCPcopy
hub / github.com/nats-io/nats.go / Dial

Method Dial

test/conn_test.go:1902–1909  ·  view source on GitHub ↗
(network, address string)

Source from the content-addressed store, hash-verified

1900type lowWriteBufferDialer struct{}
1901
1902func (d *lowWriteBufferDialer) Dial(network, address string) (net.Conn, error) {
1903 c, err := net.Dial(network, address)
1904 if err != nil {
1905 return nil, err
1906 }
1907 c.(*net.TCPConn).SetWriteBuffer(100)
1908 return c, nil
1909}
1910
1911func TestCustomFlusherTimeout(t *testing.T) {
1912 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 1

DialMethod · 0.65

Tested by

no test coverage detected