cleaner tests i thought
This commit is contained in:
@@ -16,9 +16,9 @@ type RateLimitedGraph struct {
|
||||
limiters *sync.Map
|
||||
}
|
||||
|
||||
func NewRateLimitedGraph() RateLimitedGraph {
|
||||
func NewRateLimitedGraph(path ...string) RateLimitedGraph {
|
||||
return RateLimitedGraph{
|
||||
g: NewGraph(),
|
||||
g: NewGraph(path...),
|
||||
rps: config.New().RPS,
|
||||
limiters: &sync.Map{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user