diff --git a/examples/websocket_1m/server/server.go b/examples/websocket_1m/server/server.go index d59bbe48..4990406c 100644 --- a/examples/websocket_1m/server/server.go +++ b/examples/websocket_1m/server/server.go @@ -56,7 +56,7 @@ func main() { <-ticker.C n := atomic.SwapUint64(&qps, 0) total += n - _, _, _, _, s := mempool.State() + _, _, s := mempool.State() fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s) } } diff --git a/examples/websocket_1m_tls/server/server.go b/examples/websocket_1m_tls/server/server.go index 755615b7..5912b05a 100644 --- a/examples/websocket_1m_tls/server/server.go +++ b/examples/websocket_1m_tls/server/server.go @@ -78,7 +78,7 @@ func main() { <-ticker.C n := atomic.SwapUint64(&qps, 0) total += n - _, _, _, _, s := mempool.State() + _, _, s := mempool.State() fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s) } } diff --git a/examples/websocket_1m_tls/server_std/server.go b/examples/websocket_1m_tls/server_std/server.go index 62fc5203..ec96e188 100644 --- a/examples/websocket_1m_tls/server_std/server.go +++ b/examples/websocket_1m_tls/server_std/server.go @@ -10,7 +10,6 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/lesismal/nbio/mempool" ) var ( @@ -67,8 +66,7 @@ func main() { <-ticker.C n := atomic.SwapUint64(&qps, 0) total += n - _, _, _, _, s := mempool.State() - fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s) + fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n", i, runtime.NumGoroutine(), n, total) } }