basic position durability for tail operation (#128)

This commit is contained in:
Michael Quigley
2023-03-06 14:20:44 -05:00
parent 2192c23760
commit e4877a20ed
2 changed files with 34 additions and 11 deletions

View File

@@ -12,7 +12,6 @@ type MetricsAgent struct {
func Run(cfg *Config) (*MetricsAgent, error) {
logrus.Info("starting")
defer logrus.Warn("stopping")
if cfg.Source == nil {
return nil, errors.New("no 'source' configured; exiting")
@@ -42,6 +41,7 @@ func Run(cfg *Config) (*MetricsAgent, error) {
}
func (ma *MetricsAgent) Stop() {
logrus.Info("stopping")
ma.src.Stop()
}