Gofmt snapjob.go
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user