mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
xgap: fix group id range
This commit is contained in:
parent
0d2afef276
commit
d4cf39430e
|
@ -210,7 +210,7 @@ func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, se
|
|||
s.tradingSession.UserDataStream.OnTradeUpdate(s.handleTradeUpdate)
|
||||
|
||||
instanceID := fmt.Sprintf("%s-%s", ID, s.Symbol)
|
||||
s.groupID = util.FNV32(instanceID)
|
||||
s.groupID = util.FNV32(instanceID) % math.MaxInt32
|
||||
log.Infof("using group id %d from fnv32(%s)", s.groupID, instanceID)
|
||||
|
||||
go func() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user