Skip to content

Commit

Permalink
adapt gosnippets changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hexian000 committed Nov 18, 2023
1 parent ccd8244 commit 9215ccb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion v2/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.20

require (
github.com/hashicorp/yamux v0.1.1
github.com/hexian000/gosnippets v0.0.0-20231117080430-a4acb9b3a8fb
github.com/hexian000/gosnippets v0.0.0-20231118040836-0cf2fe6a912d
)
4 changes: 2 additions & 2 deletions v2/go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
github.com/hexian000/gosnippets v0.0.0-20231117080430-a4acb9b3a8fb h1:4G+ckJgjasXC4eeQuPQB+Wh818zrGNDq42GuHSEYCl0=
github.com/hexian000/gosnippets v0.0.0-20231117080430-a4acb9b3a8fb/go.mod h1:SItpHKzoWxn8Lj2kJiw1ridZGDunCyUIbpL1N/7j6FQ=
github.com/hexian000/gosnippets v0.0.0-20231118040836-0cf2fe6a912d h1:lPBFKcN1Yv40eXi4dKQiN1vsAJzFP8Gx+23j2qf61yc=
github.com/hexian000/gosnippets v0.0.0-20231118040836-0cf2fe6a912d/go.mod h1:SItpHKzoWxn8Lj2kJiw1ridZGDunCyUIbpL1N/7j6FQ=
2 changes: 1 addition & 1 deletion v2/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (t *Tunnel) Start() error {
t.l = hlistener.Wrap(l, &hlistener.Config{
Start: uint32(c.StartupLimitStart),
Full: uint32(c.StartupLimitFull),
Rate: c.StartupLimitRate,
Rate: float64(c.StartupLimitRate) / 100.0,
MaxSessions: uint32(c.MaxSessions),
Stats: h.Stats,
})
Expand Down

0 comments on commit 9215ccb

Please sign in to comment.