Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
f0cii committed Oct 8, 2018
1 parent 8d178b6 commit e755138
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions basestrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

// BaseStrategy 策略基础类
type BaseStrategy struct {
self interface{}
mutex sync.RWMutex
self interface{}
mutex sync.RWMutex
status RobotStatus
}

Expand Down Expand Up @@ -50,7 +50,7 @@ func (s *BaseStrategy) run() {
}()

log.Info("Start")

if s.self == nil {
log.Errorf("The strategy this is nil")
s.status = RobotStatusStopped
Expand Down Expand Up @@ -117,7 +117,7 @@ func (s *BaseStrategy) run() {
return
}

s.status = RobotStatusStarting
s.status = RobotStatusRunning

func() {
defer func() {
Expand Down

0 comments on commit e755138

Please sign in to comment.