Skip to content

Commit

Permalink
func name error
Browse files Browse the repository at this point in the history
  • Loading branch information
shaovie committed Jul 30, 2023
1 parent 4e2c5d1 commit cd35efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c *Connector) connect(fd int, sa syscall.Sockaddr, eh EvHandler, timeout i
syscall.Close(fd)
return errors.New("InPorgress AddEvHandler in connector.Connect: " + err.Error())
}
inh.SchedueTimer(timeout, 0) // don't need to cancel it when conn error
inh.ScheduleTimer(timeout, 0) // don't need to cancel it when conn error
return nil
} else if err == nil { // success
eh.setReactor(reactor)
Expand Down
1 change: 1 addition & 0 deletions connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func TestConnector(t *testing.T) {
EvPollNum(10),
EvReadyNum(8), // just timer
TimerHeapInitSize(10000),
NoTimer(false),
)
if err != nil {
panic(err.Error())
Expand Down

0 comments on commit cd35efb

Please sign in to comment.