Skip to content

Commit

Permalink
Modify triage input function
Browse files Browse the repository at this point in the history
  • Loading branch information
kimhanbeom committed Dec 7, 2023
1 parent dde7275 commit 5a8eece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphql/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ impl EventMutation {
let key = i128::from(time.timestamp_nanos_opt().unwrap_or_default()) << 64
| event_kind.to_i128().expect("should not exceed i128::MAX") << 32;
let value = bincode::DefaultOptions::new().serialize(&result)?;
map.insert(&key.to_be_bytes(), &value)?;
map.put(&key.to_be_bytes(), &value)?;
}

Ok("done".to_string())
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/triage/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ impl TriageMutation {
| event_kind.to_i128().expect("should not exceed i128::MAX") << 32;

let value = bincode::DefaultOptions::new().serialize(&triage_result)?;
map.insert(&key.to_be_bytes(), &value)?;
map.put(&key.to_be_bytes(), &value)?;
Ok("done".to_string())
}
}

0 comments on commit 5a8eece

Please sign in to comment.