prune

package
v0.0.0-...-ddc1a4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostPruner

type HostPruner interface {
	Prune(_ *atomic.Bool)
}

HostPruner is the interface to prune hosts set to PlacingOffer status for too long by resetting status to ReadyOffer

func NewHeldHostPruner

func NewHeldHostPruner(pool offerpool.Pool, scope tally.Scope) HostPruner

NewHeldHostPruner initializes the host pruner for an OfferPool which prunes expired hosts in Held state

func NewPlacingHostPruner

func NewPlacingHostPruner(pool offerpool.Pool, scope tally.Scope) HostPruner

NewPlacingHostPruner initializes the host pruner for an OfferPool which prunes expired hosts in Placing state

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL