Skip to content

Commit

Permalink
chore: delete client_test.go unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andyl committed Mar 19, 2024
1 parent 5e3f1cf commit fa1e739
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ func (ev *clientEvents) OnBoot(e Engine) Action {
return None
}

func (ev *clientEvents) OnOpen(Conn) ([]byte, Action) {
return nil, None
}

func (ev *clientEvents) OnClose(Conn, error) Action {
if ev.svr != nil {
if atomic.AddInt32(&ev.svr.clientActive, -1) == 0 {
Expand Down Expand Up @@ -195,7 +191,6 @@ func TestServeWithGnetClient(t *testing.T) {
type testClientServer struct {
*BuiltinEventEngine
client *Client
clientEV *clientEvents
tester *testing.T
eng Engine
network string
Expand Down Expand Up @@ -293,9 +288,9 @@ func testServeWithGnetClient(t *testing.T, network, addr string, reuseport, reus
workerPool: goPool.Default(),
}
var err error
ts.clientEV = &clientEvents{tester: t, packetLen: streamLen, svr: ts}
clientEV := &clientEvents{tester: t, packetLen: streamLen, svr: ts}
ts.client, err = NewClient(
ts.clientEV,
clientEV,
WithLogLevel(logging.DebugLevel),
WithLockOSThread(true),
WithTicker(true),
Expand Down

0 comments on commit fa1e739

Please sign in to comment.