Minor fixes:
- Fixed function name typo - Fetcher/Run now returns a combination of errors if any workers error out. All other workers are ordered to shutdown if any one does error out - findATender now returns a pointer instead of an instance from New
This commit is contained in:
1 parent
5cb3601e1f
commit
005b335371
6 files changed
+31
-15
No files matched your search
@@ -52,9 +52,7 @@ func commandService(opts *cli.Options) *cobra.Command {
|
||||
stop()
|
||||
}()
|
||||
|
||||
fetcher.Run(ctx, conf, since)
|
||||
|
||||
return nil
|
||||
return fetcher.Run(ctx, conf, since)
|
||||
},
|
||||
}
|
||||
cmd.Flags().Time(
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func SetupIntialLogging(cmd *cobra.Command) {
|
||||
func SetupInitialLogging(cmd *cobra.Command) {
|
||||
// Start logging to terminal first - any commands that want to use file
|
||||
// logging should activate it themselves
|
||||
logging.LogToTerminal()
|
||||
|
||||
Reference in new issue
Block a user