Skip to content

Commit b88525c

Browse files
committed
Add all params for config in spoe.NewWithConfig
spoe.NewWithConfig don't handle default value, we have to set all variables
1 parent cd0f844 commit b88525c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mirror/modules/source/haproxy_spoe.go

+3
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ func (m *HAProxySPOE) SetInput(c <-chan mirror.Request) {
125125
}
126126

127127
func (m *HAProxySPOE) start() error {
128+
128129
agent := spoe.NewWithConfig(m.handleMessage, spoe.Config{
130+
ReadTimeout: time.Second,
131+
WriteTimeout: time.Second,
129132
IdleTimeout: m.idleTimeout,
130133
})
131134

0 commit comments

Comments
 (0)