From 7751dfea95a4e980d7f4b39bf29b56a438995041 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Wed, 11 Aug 2021 13:46:22 +0200 Subject: [PATCH] timer: changes config var from box to web --- pkg/timer/timer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/timer/timer.go b/pkg/timer/timer.go index 748f9b7..101b652 100644 --- a/pkg/timer/timer.go +++ b/pkg/timer/timer.go @@ -58,11 +58,10 @@ func (t *Timer) Handle() { // Run is the command line interface for triggering the timer. func Run(cmd *cobra.Command, args []string) { - conn, err := grpcclient.Conn(config.Cfg.Web.Hostname, config.Web.Box.Port) + conn, err := grpcclient.Conn(config.Cfg.Web.Hostname, config.Cfg.Web.Port) if err != nil { log.Fatal().Err(err).Msg("could not connect") } - defer conn.Close() c := api.NewTimerServiceClient(conn)