fix linter

This commit is contained in:
A.Unger committed 2020-07-15 15:31:27 +02:00
1 parent 57ac6b063a
commit 117b376509
8 files changed
+41 -45

No files matched your search

+2 -6
View File
@@ -139,9 +139,7 @@ func Server(cfg *config.Config) *cli.Command {
grpc.Flags(flagset.ServerWithConfig(config.New())),
)
gr.Add(func() error {
return server.Run()
}, func(_ error) {
gr.Add(server.Run, func(_ error) {
logger.Info().
Str("server", "grpc").
Msg("Shutting down server")
@@ -166,9 +164,7 @@ func Server(cfg *config.Config) *cli.Command {
return err
}
gr.Add(func() error {
return server.ListenAndServe()
}, func(_ error) {
gr.Add(server.ListenAndServe, func(_ error) {
ctx, timeout := context.WithTimeout(ctx, 5*time.Second)
defer timeout()