mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
adjust listen key keep alive to 30 min
This commit is contained in:
parent
7a3963b34e
commit
aceca1b49f
|
@ -409,7 +409,7 @@ func (s *Stream) ping(ctx context.Context) {
|
|||
// Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes.
|
||||
// It's recommended to send a ping about every 30 minutes.
|
||||
func (s *Stream) listenKeyKeepAlive(ctx context.Context, listenKey string) {
|
||||
keepAliveTicker := time.NewTicker(20 * time.Minute)
|
||||
keepAliveTicker := time.NewTicker(30 * time.Minute)
|
||||
defer keepAliveTicker.Stop()
|
||||
|
||||
// if we exit, we should invalidate the existing listen key
|
||||
|
|
Loading…
Reference in New Issue
Block a user