mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
perf与性能优化
This commit is contained in:
@@ -27,12 +27,12 @@ func Run(ctx context.Context, configFile string) error {
|
||||
defer db.CloseDao()
|
||||
|
||||
// natsrpc client
|
||||
client, err := rpc.NewClient()
|
||||
discoveryClient, err := rpc.NewDiscoveryClient()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
_ = controller.NewController(db, client.Discovery)
|
||||
_ = controller.NewController(db, discoveryClient)
|
||||
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT)
|
||||
|
||||
Reference in New Issue
Block a user