pub(crate) fn update_last_watched_block_number(
        &self,
        number: &NewLastWatchedEthBlockNumber,
    ) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            diesel::delete(data_restore_last_watched_eth_block::table).execute(self.0.conn())?;
            diesel::insert_into(data_restore_last_watched_eth_block::table)
                .values(number)
                .execute(self.0.conn())?;
            Ok(())
        })
    }
/// Stores the last seen Ethereum block number.
Stores the last seen Ethereum block number.
Stores the last seen Ethereum block number .
pub(crate) fn update_last_watched_block_number(
        &self,
        number: &NewLastWatchedEthBlockNumber,
    ) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            diesel::delete(data_restore_last_watched_eth_block::table).execute(self.0.conn())?;
            diesel::insert_into(data_restore_last_watched_eth_block::table)
                .values(number)
                .execute(self.0.conn())?;
            Ok(())
        })
    }
pub ( crate ) fn update_last_watched_block_number ( & self , number : & NewLastWatchedEthBlockNumber , ) -> QueryResult < ( ) > { self . 0 . conn ( ) . transaction ( | | { diesel :: delete ( data_restore_last_watched_eth_block :: table ) . execute ( self . 0 . conn ( ) ) ? ; diesel :: insert_into ( data_restore_last_watched_eth_block :: table ) . values ( number ) . execute ( self . 0 . conn ( ) ) ? ; Ok ( ( ) ) } ) }
Stores the last seen Ethereum block number.
Stores the last seen Ethereum block number .
&self
number
&NewLastWatchedEthBlockNumber