Skip to content

Commit f8f044f

Browse files
author
DogLooksGood
committed
Fix compilation warnings
1 parent 7dc657c commit f8f044f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

transactor/src/server.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ async fn get_latest_checkpoints(params: Params<'_>, context: Arc<ApplicationCont
138138
let game_addrs = params.parse::<Vec<String>>()?;
139139
let mut result = Vec::with_capacity(game_addrs.len());
140140

141-
let start = Instant::now();
142-
143141
for addr in game_addrs {
144142
let checkpoint: Option<CheckpointOffChain> = context
145143
.game_manager
@@ -150,7 +148,6 @@ async fn get_latest_checkpoints(params: Params<'_>, context: Arc<ApplicationCont
150148
result.push(checkpoint);
151149
}
152150

153-
let duration = start.elapsed();
154151
let bs = borsh::to_vec(&result).map_err(|e| RpcError::Call(CallError::Failed(e.into())))?;
155152
Ok(bs)
156153
}

0 commit comments

Comments
 (0)