perf: initialize all token encoder when starting (close #459, close $460)

This commit is contained in:
JustSong
2023-08-26 13:02:02 +08:00
parent a3e267df7e
commit fdb2cccf65
2 changed files with 19 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ func main() {
}
go controller.AutomaticallyTestChannels(frequency)
}
controller.InitTokenEncoders()
// Initialize HTTP server
server := gin.Default()