Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Sep 18, 2024
1 parent 20825f2 commit 2df790f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions bin/host/src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
//! This module contains all CLI-specific code for the host binary.

use crate::{kv::{
DiskKeyValueStore, LocalKeyValueStore, MemoryKeyValueStore, SharedKeyValueStore,
SplitKeyValueStore,
}, util};
use crate::{
kv::{
DiskKeyValueStore, LocalKeyValueStore, MemoryKeyValueStore, SharedKeyValueStore,
SplitKeyValueStore,
},
util,
};
use alloy_primitives::B256;
use alloy_provider::ReqwestProvider;
use anyhow::{anyhow, Result};
Expand Down Expand Up @@ -77,9 +80,9 @@ pub struct HostCli {
impl HostCli {
/// Returns `true` if the host is running in offline mode.
pub fn is_offline(&self) -> bool {
self.l1_node_address.is_none()
&& self.l2_node_address.is_none()
&& self.l1_beacon_address.is_none()
self.l1_node_address.is_none() &&
self.l2_node_address.is_none() &&
self.l1_beacon_address.is_none()
}

/// Creates the providers associated with the [HostCli] configuration.
Expand Down

0 comments on commit 2df790f

Please sign in to comment.