mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated README and simplified/cleaned up some code.
This commit is contained in:
4
main.go
4
main.go
@@ -90,11 +90,11 @@ func main() {
|
||||
srv.Run(ctx)
|
||||
})
|
||||
|
||||
apiURL, port, numAsync := viper.GetString(envAPIURL), viper.GetString(envPort), viper.GetInt(envNumAsync)
|
||||
apiURL, numAsync := viper.GetString(envAPIURL), viper.GetInt(envNumAsync)
|
||||
log.Debug("async workers:", numAsync)
|
||||
if numAsync > 0 {
|
||||
svr.AddFunc(func(ctx context.Context) {
|
||||
runner.RunAsyncRunner(ctx, apiURL, port, numAsync)
|
||||
runner.RunAsyncRunner(ctx, apiURL, numAsync)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user