add more logic for chao

pull/370/head
Minh Doan 6 years ago committed by Minh Doan
parent 0678caef79
commit 50e1f1664c
  1. 7
      node/service/random_generation.go

@ -36,6 +36,8 @@ func (cs *RandomGeneration) Run(stopChan chan struct{}, stoppedChan chan struct{
select {
default:
utils.GetLogInstance().Info("Running random generation")
// Write some logic here.
cs.DoRandomGeneration()
case <-stopChan:
return
}
@ -43,6 +45,11 @@ func (cs *RandomGeneration) Run(stopChan chan struct{}, stoppedChan chan struct{
}()
}
// DoRandomGeneration does random generation.
func (cs *RandomGeneration) DoRandomGeneration() {
}
// StopService stops random generation service.
func (cs *RandomGeneration) StopService() {
utils.GetLogInstance().Info("Stopping random generation service.")

Loading…
Cancel
Save