Create limiters

This commit is contained in:
Ian Gulliver
2021-09-26 04:25:06 +00:00
parent 1846eb45bc
commit eb56b5ddd9
3 changed files with 14 additions and 6 deletions

View File

@@ -20,8 +20,9 @@ func (c *Client) InWorkspace(name string) (*WorkspaceClient, error) {
}
return &WorkspaceClient{
client: c,
workspace: wrk,
client: c,
workspace: wrk,
rateLimitSearch: NewRateLimitPerMinute(60, 60),
}, nil
}