multi-client but one ntg search, nontrivial config.json change
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
package broker
|
||||
|
||||
import "local/truckstop/config"
|
||||
import (
|
||||
"local/truckstop/config"
|
||||
|
||||
"golang.org/x/time/rate"
|
||||
)
|
||||
|
||||
var limiter = rate.NewLimiter(rate.Limit(0.3), 1)
|
||||
|
||||
type Broker interface {
|
||||
Search([]config.State) ([]Job, error)
|
||||
|
||||
Reference in New Issue
Block a user