Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Typo check: https://github.com/crate-ci/typos

[files]
extend-exclude = ["go.sum"]

[default.extend-identifiers]
# *sigh* this just isn't worth the cost of fixing
nd = "nd"
paniced = "paniced"
write_datas = "write_datas"
4 changes: 2 additions & 2 deletions connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ func TestConnectionServerClose(t *testing.T) {
go func() {
err := el.Serve(ln)
if err != nil {
t.Logf("servce end with error: %v", err)
t.Logf("service end with error: %v", err)
}
}()

Expand Down Expand Up @@ -658,7 +658,7 @@ func TestConnectionDailTimeoutAndClose(t *testing.T) {
go func() {
err := el.Serve(ln)
if err != nil {
t.Logf("servce end with error: %v", err)
t.Logf("service end with error: %v", err)
}
}()

Expand Down
2 changes: 1 addition & 1 deletion net_dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (d *dialer) DialConnection(network, address string, timeout time.Duration)
switch network {
case "tcp", "tcp4", "tcp6":
return d.dialTCP(ctx, network, address)
// case "udp", "udp4", "udp6": // TODO: unsupport now
// case "udp", "udp4", "udp6": // TODO: unsupported now
case "unix", "unixgram", "unixpacket":
raddr := &UnixAddr{
UnixAddr: net.UnixAddr{Name: address, Net: network},
Expand Down
2 changes: 1 addition & 1 deletion netpoll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ func TestServerAcceptWhenTooManyOpenFiles(t *testing.T) {
},
WithOnConnect(func(ctx context.Context, connection Connection) context.Context {
atomic.AddInt32(&connected, 1)
t.Logf("Conn[%s] accpeted", connection.RemoteAddr())
t.Logf("Conn[%s] accepted", connection.RemoteAddr())
return ctx
}),
WithOnDisconnect(func(ctx context.Context, connection Connection) {
Expand Down