chore(queue): support NSQ as backend. (#600)

This commit is contained in:
Bo-Yi Wu
2021-07-17 20:14:19 +08:00
committed by GitHub
parent c7112a6eb3
commit 2e2dd9b8d6
18 changed files with 272 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ import (
)
// Stats provide response time, status code count, etc.
var Stats = stats.New()
var Stats *stats.Stats
// StatStorage implements the storage interface
var StatStorage storage.Storage
@@ -78,5 +78,7 @@ func InitAppStatus(conf config.ConfYaml) error {
return err
}
Stats = stats.New()
return nil
}