Commit aabda770 authored by aliiohs's avatar aliiohs

expose maxWheelTimeSpan

parent fb33e078
......@@ -45,7 +45,7 @@ const (
pendingDuration = 3e9
defaultQLen = 1024
maxIovecNum = 10
maxWheelTimeSpan = 900e9 // 900s, 15 minute
MaxWheelTimeSpan = 900e9 // 900s, 15 minute
defaultSessionName = "session"
defaultTCPSessionName = "tcp-session"
......@@ -65,7 +65,7 @@ var (
func init() {
span := 100e6 // 100ms
buckets := maxWheelTimeSpan / span
buckets := MaxWheelTimeSpan / span
wheel = gxtime.NewWheel(time.Duration(span), int(buckets)) // wheel longest span is 15 minute
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment