cleaner tests i thought

This commit is contained in:
breel
2020-08-01 01:09:35 -06:00
parent baf0aaa287
commit 71b1de33ec
7 changed files with 141 additions and 141 deletions

View File

@@ -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{},
}