Skip to content

Commit

Permalink
chore(middleware): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxron committed Oct 25, 2024
1 parent ccdce89 commit ef84501
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 66 deletions.
2 changes: 1 addition & 1 deletion middleware/circuitbreaker/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jaxron/axonet/middleware/circuitbreaker
go 1.23.1

require (
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/sony/gobreaker v1.0.0
github.com/stretchr/testify v1.9.0
)
Expand Down
6 changes: 2 additions & 4 deletions middleware/circuitbreaker/go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sony/gobreaker v1.0.0 h1:feX5fGGXSl3dYd4aHZItw+FpHLvvoaqkawKjVNiFMNQ=
Expand Down
2 changes: 1 addition & 1 deletion middleware/cookie/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jaxron/axonet/middleware/cookie
go 1.23.1

require (
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
)

Expand Down
8 changes: 2 additions & 6 deletions middleware/cookie/go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
2 changes: 1 addition & 1 deletion middleware/header/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jaxron/axonet/middleware/header
go 1.23.1

require (
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
)

Expand Down
8 changes: 2 additions & 6 deletions middleware/header/go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
2 changes: 1 addition & 1 deletion middleware/proxy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jaxron/axonet/middleware/proxy
go 1.23.1

require (
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
)

Expand Down
6 changes: 2 additions & 4 deletions middleware/proxy/go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
2 changes: 1 addition & 1 deletion middleware/ratelimit/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jaxron/axonet/middleware/ratelimit
go 1.23.1

require (
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
golang.org/x/time v0.7.0
)
Expand Down
10 changes: 2 additions & 8 deletions middleware/ratelimit/go.sum
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/time v0.6.0 h1:eTDhh4ZXt5Qf0augr54TN6suAUudPcawVZeIAPU7D4U=
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ=
golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
12 changes: 6 additions & 6 deletions middleware/redis/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ go 1.23.1
require (
github.com/bytedance/sonic v1.12.3
github.com/cespare/xxhash v1.1.0
github.com/jaxron/axonet v0.0.0-20241010034006-76a57bd8cd51
github.com/redis/rueidis v1.0.47
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/redis/rueidis v1.0.48
github.com/stretchr/testify v1.9.0
)

require (
github.com/bytedance/sonic/loader v0.2.0 // indirect
github.com/bytedance/sonic/loader v0.2.1 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/arch v0.11.0 // indirect
golang.org/x/sys v0.26.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
24 changes: 13 additions & 11 deletions middleware/redis/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAE
github.com/bytedance/sonic v1.12.3 h1:W2MGa7RCU1QTeYRTPE3+88mVC0yXmsRQRChiyVocVjU=
github.com/bytedance/sonic v1.12.3/go.mod h1:B8Gt/XvtZ3Fqj+iSKMypzymZxw/FVwgIGKzMzT9r/rk=
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
github.com/bytedance/sonic/loader v0.2.0 h1:zNprn+lsIP06C/IqCHs3gPQIvnvpKbbxyXQP1iU4kWM=
github.com/bytedance/sonic/loader v0.2.0/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
github.com/bytedance/sonic/loader v0.2.1 h1:1GgorWTqf12TA8mma4DDSbaQigE2wOgQo7iCjjJv3+E=
github.com/bytedance/sonic/loader v0.2.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y=
Expand All @@ -16,10 +16,11 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/jaxron/axonet v0.0.0-20241010034006-76a57bd8cd51 h1:aFL26S2t6L5RaUnfT4aTtJHViUeYzNqMgLc4A8tHTR0=
github.com/jaxron/axonet v0.0.0-20241010034006-76a57bd8cd51/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/klauspost/cpuid/v2 v2.0.9 h1:lgaqFMSdTdQYdZ04uHyN2d/eKdOMyi2YLSvlQIBFYa4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM=
github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
Expand All @@ -29,8 +30,8 @@ github.com/onsi/gomega v1.34.1 h1:EUMJIKUjM8sKjYbtxQI9A4z2o+rruxnzNvpknOXie6k=
github.com/onsi/gomega v1.34.1/go.mod h1:kU1QgUvBDLXBJq618Xvm2LUX6rSAfRaFRTcdOeDLwwY=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/redis/rueidis v1.0.47 h1:41UdeXOo4eJuW+cfpUJuLtVGyO0QJY3A2rEYgJWlfHs=
github.com/redis/rueidis v1.0.47/go.mod h1:by+34b0cFXndxtYmPAHpoTHO5NkosDlBvhexoTURIxM=
github.com/redis/rueidis v1.0.48 h1:ggZHjEtc/echUmPkGTfssRisnc3p/mIUEwrpbNsZ1mQ=
github.com/redis/rueidis v1.0.48/go.mod h1:by+34b0cFXndxtYmPAHpoTHO5NkosDlBvhexoTURIxM=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand All @@ -44,14 +45,15 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
golang.org/x/arch v0.0.0-20210923205945-b76863e36670 h1:18EFjUmQOcUvxNYSkA6jO9VAiXCnxFY6NyDX0bHDmkU=
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.11.0 h1:KXV8WWKCXm6tRpLirl2szsO5j/oOODwZf4hATmGVNs4=
golang.org/x/arch v0.11.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8=
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY=
golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
2 changes: 1 addition & 1 deletion middleware/redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/bytedance/sonic"
redis "github.com/jaxron/axonet/middleware/rediscache"
"github.com/jaxron/axonet/middleware/redis"
"github.com/jaxron/axonet/pkg/client/logger"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion middleware/retry/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23.1

require (
github.com/cenkalti/backoff/v4 v4.3.0
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
)

Expand Down
8 changes: 2 additions & 6 deletions middleware/retry/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
Expand Down
2 changes: 1 addition & 1 deletion middleware/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (m *RetryMiddleware) handleRetryError(resp *http.Response, err error) error
case resp.StatusCode == http.StatusTooManyRequests:
// Too Many Requests - should be retried
return clientErrors.ErrBadStatus
case resp.StatusCode >= 400 && resp.StatusCode < 500:
case resp.StatusCode >= 400:
// Client errors are typically permanent
return backoff.Permanent(clientErrors.ErrBadStatus)
}
Expand Down
2 changes: 1 addition & 1 deletion middleware/singleflight/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23.1

require (
github.com/cespare/xxhash v1.1.0
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02
github.com/stretchr/testify v1.9.0
golang.org/x/sync v0.8.0
)
Expand Down
8 changes: 2 additions & 6 deletions middleware/singleflight/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b h1:8nTu08ZteWJg7cnT70uIGE+uX9nPCFWsKdpCeUjjk0g=
github.com/jaxron/axonet v0.0.0-20241002060205-163e5b96ab1b/go.mod h1:TogmFXw5fTZXMqRRxGvJqlEVN4rtDRUEA7YkBfx5ehw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a h1:2ZiHtv7Xd/KnL1le84O+CW+6PtPPJ8GVO/h7aWRIpxw=
github.com/jaxron/axonet v0.0.0-20241008024308-45575184723a/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe h1:VOG6pe/Jku50erxZaw1w8b8f/NWtZAc8E80UQzYeWPQ=
github.com/jaxron/axonet v0.0.0-20241009045600-f73d347dcdfe/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02 h1:yC4hnaQHdpJj14ajL3ruQIu+65ZruRIizhdHWr/dXz4=
github.com/jaxron/axonet v0.0.0-20241025045532-ccdce8931d02/go.mod h1:92DgyJvbzpypIYiDDCbdEQiyDKQ6vUJN/i948GmChhI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=
Expand Down

0 comments on commit ef84501

Please sign in to comment.