From baff7b7d80a6de9d3e8d6dc42713fe2d0339e0e8 Mon Sep 17 00:00:00 2001 From: teor Date: Mon, 25 Nov 2024 15:12:01 +1000 Subject: [PATCH] Remove an unnecessary TODO --- crates/subspace-gateway-rpc/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/subspace-gateway-rpc/src/lib.rs b/crates/subspace-gateway-rpc/src/lib.rs index 570d2db0e3..d0756ec0e4 100644 --- a/crates/subspace-gateway-rpc/src/lib.rs +++ b/crates/subspace-gateway-rpc/src/lib.rs @@ -138,8 +138,6 @@ where PG: ObjectPieceGetter + Send + Sync + 'static, { async fn fetch_object(&self, mappings: GlobalObjectMapping) -> Result, Error> { - // TODO: deny unsafe RPC calls - let count = mappings.objects().len(); if count > MAX_OBJECTS_PER_REQUEST { debug!(%count, %MAX_OBJECTS_PER_REQUEST, "Too many mappings in request");