Skip to content

Commit 5a91fad

Browse files
committed
Merge branch 'rumenov/NET-1341' into 'master'
fix: FOLLOW-732 limit the number of possible request ids to be specified in a read_state request Closes NET-1341 Closes FOLLOW-732 and NET-1341 See merge request dfinity-lab/public/ic!11076
2 parents a8da3aa + 4ff4480 commit 5a91fad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ http_archive(
365365
package(default_visibility = ["//visibility:public"])
366366
filegroup(name = "artifacts", srcs = glob(["build/*", "test-data/*"]), visibility = ["//visibility:public"])
367367
""",
368-
sha256 = "3e54208049b59f17a59fadf57c84d6a03a06b206d47af5d7afee8c5770e4c7f4",
369-
urls = ["https://download.dfinity.systems/ic-ref/ic-ref-test-0.0.1-bdaaa321-x86_64-linux.tar.gz"],
368+
sha256 = "9f7f9294ae1a20a84b785ef929bd3a10d14155731bfdecf41950cae0ca09804f",
369+
urls = ["https://download.dfinity.systems/ic-ref/ic-ref-test-0.0.1-3d71032e-x86_64-linux.tar.gz"],
370370
)
371371

372372
# Bitcoin canister

rs/http_endpoints/public/src/read_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use tower::{
3434
limit::concurrency::GlobalConcurrencyLimitLayer, util::BoxCloneService, Service, ServiceBuilder,
3535
};
3636

37-
const MAX_READ_STATE_REQUEST_IDS: u8 = 100;
37+
const MAX_READ_STATE_REQUEST_IDS: u8 = 1;
3838
const MAX_READ_STATE_CONCURRENT_REQUESTS: usize = 100;
3939

4040
#[derive(Clone)]
@@ -287,7 +287,7 @@ async fn verify_paths(
287287
return Err(HttpError {
288288
status: StatusCode::TOO_MANY_REQUESTS,
289289
message: format!(
290-
"Can only request up to {} request IDs.",
290+
"Can only request up to {} paths for request_status.",
291291
MAX_READ_STATE_REQUEST_IDS
292292
),
293293
});

0 commit comments

Comments
 (0)