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 5ac2eac15f
commit 574be5bd1d
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@ func main() {
}
go controller.AutomaticallyTestChannels(frequency)
}
controller.InitTokenEncoders()
// Initialize HTTP server
server := gin.Default()