From 71fda35e67bc6858dd5df13007419f0c869c268d Mon Sep 17 00:00:00 2001 From: Jeff Grunewald Date: Mon, 10 Apr 2023 15:59:33 -0400 Subject: [PATCH] Update iot_config/src/gateway_service.rs Co-authored-by: Matthew Plant --- iot_config/src/gateway_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iot_config/src/gateway_service.rs b/iot_config/src/gateway_service.rs index c0198ab89..a791021ca 100644 --- a/iot_config/src/gateway_service.rs +++ b/iot_config/src/gateway_service.rs @@ -206,7 +206,7 @@ impl iot_config::Gateway for GatewayService { let metadata_info = gateway_info::db::get_info(&self.metadata_pool, address) .await .map_err(|_| Status::internal("error fetching gateway info"))? - .ok_or(Status::not_found(format!( + .ok_or_else(|| Status::not_found(format!( "gateway not found: pubkey = {address:}" )))?;