Skip to content

Commit

Permalink
[tutasdk] implement suspension handling
Browse files Browse the repository at this point in the history
we wrap the RestClient given to us during SDK
construction in another implementation that suspends
requests if a previous request received a TooManyRequests
or ServiceUnavailable response

Co-authored-by: jhm <17314077+jomapp@users.noreply.github.com>
  • Loading branch information
ganthern and jomapp committed Nov 22, 2024
1 parent 4370cc6 commit 1d096d7
Show file tree
Hide file tree
Showing 28 changed files with 1,088 additions and 630 deletions.
2 changes: 1 addition & 1 deletion buildSrc/RustGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function generateRustServiceDefinition(appName, appVersion, services) {
"use crate::ApiCallError;",
"use crate::entities::Entity;",
"use crate::services::{PostService, GetService, PutService, DeleteService, Service, Executor, ExtraServiceParams};",
"use crate::rest_client::HttpMethod;",
"use crate::bindings::rest_client::HttpMethod;",
"use crate::services::hidden::Nothing;",
])
const code = services
Expand Down
Loading

0 comments on commit 1d096d7

Please sign in to comment.