Skip to content

Commit

Permalink
do not start update up if no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
netsirius committed Jan 10, 2025
1 parent a022d9f commit 969b94a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/core/src/client_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ async fn process_open_request(
Ok(ContractHandlerEvent::UpdateResponse {
new_value: Err(err),
}) => Err(OpError::from(err)),
Ok(ContractHandlerEvent::UpdateNoChange { .. }) => {
todo!("update no change, do not start op")
Ok(ContractHandlerEvent::UpdateNoChange { key }) => {
tracing::debug!(%key, "update with no change, do not start op");
return Ok(None);
}
Err(err) => Err(err.into()),
Ok(_) => Err(OpError::UnexpectedOpState),
Expand Down

0 comments on commit 969b94a

Please sign in to comment.