Skip to content

Commit

Permalink
fix(server): support Pond v1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Aug 2, 2024
1 parent cea6779 commit c735c4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/apache/thrift v0.20.0
github.com/edwingeng/doublejump v1.0.1
github.com/fatih/color v1.17.0
github.com/go-echarts/go-echarts/v2 v2.4.1
github.com/go-echarts/go-echarts/v2 v2.3.3
github.com/go-ping/ping v1.1.0
github.com/go-redis/redis_rate/v10 v10.0.1
github.com/godzie44/go-uring v0.0.0-20220926161041-69611e8b13d5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMo
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
github.com/go-echarts/go-echarts/v2 v2.4.1 h1:imBFGngJ9zv/2zJVjK3k0uLL+LzyPDgzeV7MWzxH0rs=
github.com/go-echarts/go-echarts/v2 v2.4.1/go.mod h1:56YlvzhW/a+du15f3S2qUGNDfKnFOeJSThBIrVFHDtI=
github.com/go-echarts/go-echarts/v2 v2.3.3 h1:uImZAk6qLkC6F9ju6mZ5SPBqTyK8xjZKwSmwnCg4bxg=
github.com/go-echarts/go-echarts/v2 v2.3.3/go.mod h1:56YlvzhW/a+du15f3S2qUGNDfKnFOeJSThBIrVFHDtI=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
Expand Down
3 changes: 1 addition & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type Handler func(ctx *Context) error
type WorkerPool interface {
Submit(task func())
StopAndWaitFor(deadline time.Duration)
Stop()
Stop() context.Context
StopAndWait()
}

Expand Down Expand Up @@ -387,7 +387,6 @@ func (s *Server) sendResponse(ctx *share.Context, conn net.Conn, err error, req,
protocol.PutData(data)
}()
}

} else {
if s.writeTimeout != 0 {
conn.SetWriteDeadline(time.Now().Add(s.writeTimeout))
Expand Down

0 comments on commit c735c4f

Please sign in to comment.