Skip to content

Commit

Permalink
chore: upgrade netpoll to v0.2.0 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Feb 22, 2022
1 parent 66de765 commit d0cb827
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/bytedance/gopkg v0.0.0-20210910103821-e4efae9c17c3
github.com/cespare/xxhash v1.1.0
github.com/choleraehyq/pid v0.0.12
github.com/cloudwego/netpoll v0.1.2
github.com/cloudwego/netpoll v0.2.0
github.com/cloudwego/netpoll-http2 v0.0.6
github.com/cloudwego/thriftgo v0.1.2
github.com/json-iterator/go v1.1.11
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ github.com/choleraehyq/pid v0.0.12 h1:JLiTCsz2gStQZ3YWet+p9hktRnWzk7VJigpzvGV+I2
github.com/choleraehyq/pid v0.0.12/go.mod h1:uhzeFgxJZWQsZulelVQZwdASxQ9TIPZYL4TPkQMtL/U=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudwego/netpoll v0.1.0/go.mod h1:rZOiNI0FYjuvNybXKKhAPUja03loJi/cdv2F55AE6E8=
github.com/cloudwego/netpoll v0.1.2 h1:NSvqHfCmmR3g0ASshwAB0F2RJvXK8v7ToFmhWzh/ukY=
github.com/cloudwego/netpoll v0.1.2/go.mod h1:rZOiNI0FYjuvNybXKKhAPUja03loJi/cdv2F55AE6E8=
github.com/cloudwego/netpoll v0.2.0 h1:MmZX/jS6ozso86mnbVJ7fUO1hL4LOH/XngXN7Pn347A=
github.com/cloudwego/netpoll v0.2.0/go.mod h1:rZOiNI0FYjuvNybXKKhAPUja03loJi/cdv2F55AE6E8=
github.com/cloudwego/netpoll-http2 v0.0.6 h1:+jdkMKGj7ifRqWOdyT/hqzhXklmqh/H4lyOdrAVkI/U=
github.com/cloudwego/netpoll-http2 v0.0.6/go.mod h1:+bjPyu2Cd4GDzKa0IegPgp1hjMjpZ6/kXTsSjIsmUk8=
github.com/cloudwego/thriftgo v0.1.2 h1:AXpGJiWE3VggfiRHwA6raRJUIcjxliEIfJfGlvRiYUA=
Expand Down
5 changes: 5 additions & 0 deletions pkg/remote/trans/netpoll/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ func (m *MockNetpollReader) Peek(n int) (buf []byte, err error) {
return
}

// Until implements the netpoll.Reader interface.
func (m *MockNetpollReader) Until(b byte) (p []byte, err error) {
return
}

// Skip implements the netpoll.Reader interface.
func (m *MockNetpollReader) Skip(n int) (err error) {
return
Expand Down
5 changes: 5 additions & 0 deletions pkg/remote/trans/netpollmux/mocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,11 @@ func (m *MockNetpollReader) Peek(n int) (buf []byte, err error) {
return
}

// Until implements the netpoll.Reader interface.
func (m *MockNetpollReader) Until(b byte) (buf []byte, err error) {
return
}

// Skip implements the netpoll.Reader interface.
func (m *MockNetpollReader) Skip(n int) (err error) {
return
Expand Down

0 comments on commit d0cb827

Please sign in to comment.