multi-client but one ntg search, nontrivial config.json change

This commit is contained in:
Bel LaPointe
2022-01-11 22:54:18 -05:00
parent 5a4bcecac7
commit e546034c26
8 changed files with 138 additions and 54 deletions

View File

@@ -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)