chore: load config from env file

This commit is contained in:
Bo-Yi Wu authored and Jason Song committed 2022-11-24 15:36:30 +08:00
1 parent 5213612033
commit aa9ed05903
5 files changed
+79 -2

No files matched your search

+1 -2
View File
@@ -127,9 +127,8 @@ func handleMessage(ctx context.Context, conn *websocket.Conn, message []byte) er
}
func runDaemon(ctx context.Context, input *Input) func(cmd *cobra.Command, args []string) error {
log.Info().Msgf("Starting runner daemon")
return func(cmd *cobra.Command, args []string) error {
log.Info().Msg("Starting runner daemon")
var conn *websocket.Conn
var err error
ticker := time.NewTicker(time.Second)