fixedmaker, liquiditymaker: update initialize method

This commit is contained in:
c9s 2023-12-19 21:59:44 +08:00
parent 3dd93b65db
commit 4894a59756
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 7 additions and 2 deletions

View File

@ -47,7 +47,10 @@ func (s *Strategy) Defaults() error {
}
func (s *Strategy) Initialize() error {
s.Strategy = &common.Strategy{}
if s.Strategy == nil {
s.Strategy = &common.Strategy{}
}
return nil
}

View File

@ -67,7 +67,9 @@ type Strategy struct {
}
func (s *Strategy) Initialize() error {
s.Strategy = &common.Strategy{}
if s.Strategy == nil {
s.Strategy = &common.Strategy{}
}
return nil
}