Skip to content

Commit

Permalink
fix: _typos.toml and some typos (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakusai22 authored May 6, 2024
1 parent 05a1094 commit 6786590
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
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

0 comments on commit 6786590

Please sign in to comment.