Skip to content

Commit

Permalink
Update iot_config/src/gateway_service.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Plant <matty@nova-labs.com>
  • Loading branch information
jeffgrunewald and Matthew Plant authored Apr 10, 2023
1 parent 944f6d3 commit 71fda35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iot_config/src/gateway_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:}"
)))?;

Expand Down

0 comments on commit 71fda35

Please sign in to comment.