Gofmt snapjob.go

This commit is contained in:
InsanePrawn 2018-11-21 14:02:21 +01:00
parent 22d9830baa
commit d0f898751f

View File

@ -26,15 +26,13 @@ type SnapJob struct {
pruner *pruner.Pruner pruner *pruner.Pruner
} }
func (j *SnapJob) Name() string { return j.name } func (j *SnapJob) Name() string { return j.name }
func (j *SnapJob) getPruner(ctx context.Context, sender *endpoint.Sender) (*pruner.Pruner) { func (j *SnapJob) getPruner(ctx context.Context, sender *endpoint.Sender) *pruner.Pruner {
p := j.prunerFactory.BuildSinglePruner(ctx, sender, sender) p := j.prunerFactory.BuildSinglePruner(ctx, sender, sender)
return p return p
} }
func (j *SnapJob) Type() Type { return TypeSnap } func (j *SnapJob) Type() Type { return TypeSnap }
func (j *SnapJob) RunPeriodic(ctx context.Context, wakeUpCommon chan<- struct{}) { func (j *SnapJob) RunPeriodic(ctx context.Context, wakeUpCommon chan<- struct{}) {
@ -126,4 +124,3 @@ func (j *SnapJob) doPrune(ctx context.Context) {
j.pruner.Prune() j.pruner.Prune()
log.Info("finished pruning") log.Info("finished pruning")
} }