This commit is contained in:
gazebo
2019-04-27 16:06:39 +08:00
parent dbd9e3a3d2
commit e73eb78710
2 changed files with 2 additions and 1 deletions

View File

@@ -223,6 +223,7 @@ func (e *EventHub) GetEvent(eventCategory string, eventTypeList []string, criter
} }
} }
} }
globals.SugarLogger.Debugf("GetEvent pollingDuration:%d seconds", pollingDuration/time.Second)
timer := time.NewTimer(pollingDuration) timer := time.NewTimer(pollingDuration)
select { select {
case tmpEvent, ok := <-notifyChan: case tmpEvent, ok := <-notifyChan:

View File

@@ -16,7 +16,7 @@ type SysController struct {
// @Title 得到京西门店信息 // @Title 得到京西门店信息
// @Description 得到京西门店信息,如下条件之间是与的关系 // @Description 得到京西门店信息,如下条件之间是与的关系
// @Param accessKey query string true "假token" // @Param accessKey query string true "假token"
// @Param oldToken query string true "之前的token" // @Param oldToken query string false "之前的token"
// @Param waitSecond query int false "等待秒数" // @Param waitSecond query int false "等待秒数"
// @Success 200 {object} controllers.CallResult // @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult // @Failure 200 {object} controllers.CallResult