Skip to content

Commit bae203f

Browse files
claudesebastianst
andcommitted
lokahi: make verifier_config const per clippy missing_const_for_fn
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Sebastian Stammler <seb@oplabs.co> Claude-Session: https://claude.ai/code/session_01WEDeDWcHt2X1mZYhvHmnZ5
1 parent aca3ee2 commit bae203f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

rust/lokahi/src/interop/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ impl InteropActor {
335335
/// an override: op-supernode's is an independent setting whose default stays the protocol window
336336
/// (`interop.go:34-37`), and backfilling more than a shrunken window costs nothing while
337337
/// backfilling less would leave sealed history short of what a resumed verifier checks for.
338-
fn verifier_config(activation_timestamp: u64, message_expiry_window: Option<u64>) -> VerifierConfig {
338+
const fn verifier_config(
339+
activation_timestamp: u64,
340+
message_expiry_window: Option<u64>,
341+
) -> VerifierConfig {
339342
let mut config = VerifierConfig::new(activation_timestamp);
340343
if let Some(window) = message_expiry_window {
341344
config.message_expiry_window = window;

0 commit comments

Comments
 (0)