Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: damuzhi0810 <[email protected]>
  • Loading branch information
damuzhi0810 committed Jan 23, 2025
1 parent 440efa7 commit f12c65c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion liana-gui/src/app/state/settings/bitcoind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ impl RescanSetting {
return Command::none();
}
self.processing = true;
info!("Asking deamon to rescan with timestamp: {}", t);
info!("Asking daemon to rescan with timestamp: {}", t);
return Command::perform(
async move {
daemon.start_rescan(t.try_into().expect("t cannot be inferior to 0 otherwise genesis block timestamp is chosen"))
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ impl BitcoinInterface for electrum::Electrum {
}
}

// FIXME: do we need to repeat the entire trait implemenation? Isn't there a nicer way?
// FIXME: do we need to repeat the entire trait implementation? Isn't there a nicer way?
impl BitcoinInterface for sync::Arc<sync::Mutex<dyn BitcoinInterface + 'static>> {
fn genesis_block_timestamp(&self) -> u32 {
self.lock().unwrap().genesis_block_timestamp()
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl DatabaseInterface for SqliteDb {
}
}

// FIXME: do we need to repeat the entire trait implemenation? Isn't there a nicer way?
// FIXME: do we need to repeat the entire trait implementation? Isn't there a nicer way?
impl DatabaseInterface for sync::Arc<sync::Mutex<dyn DatabaseInterface>> {
fn connection(&self) -> Box<dyn DatabaseConnection> {
self.lock().unwrap().connection()
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/database/sqlite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! > Multi-thread. In this mode, SQLite can be safely used by multiple threads provided that
//! > no single database connection is used simultaneously in two or more threads.
//!
//! We leverage SQLite's `unlock_notify` feature to synchronize writes accross connection. More
//! We leverage SQLite's `unlock_notify` feature to synchronize writes across connection. More
//! about it at https://sqlite.org/unlock_notify.html.
pub mod schema;
Expand Down
2 changes: 1 addition & 1 deletion lianad/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ mod tests {
// before checking the bitcoind sync status.
t.join().unwrap();

// The datadir is created now, so if we restart it it won't create the wo wallet.
// The datadir is created now, so if we restart, it won't create the wo wallet.
let t = thread::spawn({
let config = config.clone();
move || {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_framework/bitcoind.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def stop(self):

# wait_for_mempool can be used to wait for the mempool before generating
# blocks:
# True := wait for at least 1 transation
# True := wait for at least 1 transaction
# int > 0 := wait for at least N transactions
# 'tx_id' := wait for one transaction id given as a string
# ['tx_id1', 'tx_id2'] := wait until all of the specified transaction IDs
Expand Down

0 comments on commit f12c65c

Please sign in to comment.