mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
bollmaker: remove unnecessary log
This commit is contained in:
parent
019e6a2a88
commit
3140b7e2ef
|
@ -582,7 +582,6 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
// calculate group id for orders
|
||||
instanceID := s.InstanceID()
|
||||
s.groupID = util.FNV32(instanceID)
|
||||
log.Infof("using group id %d from fnv(%s)", s.groupID, instanceID)
|
||||
|
||||
// restore state
|
||||
if err := s.LoadState(); err != nil {
|
||||
|
@ -601,13 +600,12 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
|
||||
if s.ProfitStats == nil {
|
||||
if s.state != nil {
|
||||
// copy stats
|
||||
// copy profit stats
|
||||
p2 := s.state.ProfitStats
|
||||
s.ProfitStats = &p2
|
||||
} else {
|
||||
s.ProfitStats = s.newProfitStats()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Always update the position fields
|
||||
|
|
Loading…
Reference in New Issue
Block a user