mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
remove unecessary logger
This commit is contained in:
@@ -3,7 +3,6 @@ package processor
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"log/slog"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jwetzell/showbridge-go/internal/config"
|
"github.com/jwetzell/showbridge-go/internal/config"
|
||||||
@@ -11,7 +10,6 @@ import (
|
|||||||
|
|
||||||
type MetaDelay struct {
|
type MetaDelay struct {
|
||||||
config config.ProcessorConfig
|
config config.ProcessorConfig
|
||||||
logger *slog.Logger
|
|
||||||
Duration time.Duration
|
Duration time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +39,7 @@ func init() {
|
|||||||
return nil, errors.New("time.sleep duration must be number")
|
return nil, errors.New("time.sleep duration must be number")
|
||||||
}
|
}
|
||||||
|
|
||||||
return &MetaDelay{config: config, Duration: time.Millisecond * time.Duration(durationNum), logger: slog.Default().With("component", "processor")}, nil
|
return &MetaDelay{config: config, Duration: time.Millisecond * time.Duration(durationNum)}, nil
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user