diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-20 00:09:49 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-20 00:09:49 +0000 |
commit | 61507ec1fa61fe134547a7eac9541375c6215b33 (patch) | |
tree | cf7fb84300454680dd0acd06434fa23a71d6211f /src/helix/namespaces | |
parent | a8e42248cf617767dfd890c0832ea233bb4608fc (diff) |
Replace channel based barrier with shared future based barrier
Diffstat (limited to 'src/helix/namespaces')
-rw-r--r-- | src/helix/namespaces/auth.rs | 2 | ||||
-rw-r--r-- | src/helix/namespaces/clips.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/helix/namespaces/auth.rs b/src/helix/namespaces/auth.rs index 8ad7956..5efc0fe 100644 --- a/src/helix/namespaces/auth.rs +++ b/src/helix/namespaces/auth.rs @@ -39,5 +39,5 @@ pub fn client_credentials(client: Client, secret: &str) params.insert("grant_type".to_owned(), "client_credentials".to_owned()); params.insert("scope".to_owned(), "".to_owned()); - ApiRequest::new(url, params, client, Method::POST) + ApiRequest::new(url, params, client, Method::POST, None) } diff --git a/src/helix/namespaces/clips.rs b/src/helix/namespaces/clips.rs index ac820e8..083e5c4 100644 --- a/src/helix/namespaces/clips.rs +++ b/src/helix/namespaces/clips.rs @@ -33,6 +33,7 @@ pub fn clip(client: Client, id: &str) API_DOMAIN + "/helix/clips" + "?id=" + id; let params = BTreeMap::new(); + let limit = client.default_ratelimit(); - ApiRequest::new(url, params, client, Method::GET) + ApiRequest::new(url, params, client, Method::GET, Some(limit)) } |