Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: composite
steps:
- name: setup rust tool chain
uses: dtolnay/rust-toolchain@1.88.0 # v1.88.0
uses: dtolnay/rust-toolchain@1.91.1 # v1.91.1
with:
components: ${{ (inputs.components != '') && format('{0}, rustfmt, clippy', inputs.components) || 'rustfmt, clippy' }}
- name: Install libsodium
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "openzeppelin-relayer"
version = "1.4.0"
edition = "2021"
rust-version = "1.88" #MSRV
rust-version = "1.91" #MSRV

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.88.0"
channel = "1.91.1"
profile = "minimal"
components = [
"rustc",
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/handlers/transaction_cleanup_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ async fn process_status_cleanup(
};

let page_result = transaction_repo
.find_by_status_paginated(relayer_id, &[status.clone()], query, true)
.find_by_status_paginated(relayer_id, std::slice::from_ref(status), query, true)
.await
.map_err(|e| {
eyre::eyre!(
Expand Down
2 changes: 1 addition & 1 deletion src/queues/sqs/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ fn poll_error_backoff_secs(consecutive_errors: u32) -> u64 {

// Once well past the ceiling, periodically try the base interval
// to quickly detect when the SQS endpoint recovers.
if consecutive_errors >= 7 && consecutive_errors % RECOVERY_PROBE_EVERY == 0 {
if consecutive_errors >= 7 && consecutive_errors.is_multiple_of(RECOVERY_PROBE_EVERY) {
return base;
}

Expand Down
2 changes: 1 addition & 1 deletion src/repositories/api_key/api_key_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl InMemoryApiKeyRepository {
}
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/network/network_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl InMemoryNetworkRepository {
}
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}

Expand Down
2 changes: 1 addition & 1 deletion src/repositories/notification/notification_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl InMemoryNotificationRepository {
}
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/plugin/plugin_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl InMemoryPluginRepository {
Ok(store.get(id).cloned())
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/relayer/relayer_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl InMemoryRelayerRepository {
store: Mutex::new(HashMap::new()),
}
}
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/signer/signer_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl InMemorySignerRepository {
}
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/transaction/transaction_in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl InMemoryTransactionRepository {
}
}

async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<T>, RepositoryError> {
async fn acquire_lock<T>(lock: &Mutex<T>) -> Result<MutexGuard<'_, T>, RepositoryError> {
Ok(lock.lock().await)
}

Expand Down
2 changes: 1 addition & 1 deletion src/services/plugins/pool_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ impl PoolManager {
last_log_time = now;
} else {
suppressed_count += 1;
if suppressed_count % 100 == 0 {
if suppressed_count.is_multiple_of(100) {
tracing::warn!(
target: "pool_server",
suppressed = suppressed_count,
Expand Down
Loading