Skip to content

Commit

Permalink
Stack bench root state comment not Essential code
Browse files Browse the repository at this point in the history
  • Loading branch information
zwong91 committed Nov 18, 2022
1 parent 0e9741d commit 2c12de7
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ impl SameZoneGlobalStateBench {
.await
.unwrap();

if let Err(e) = op_env
.create_new_with_path("/global-states/new/a", ObjectMapSimpleContentType::Map)
.await
{
assert!(e.code() == BuckyErrorCode::AlreadyExists);
} else {
unreachable!();
}
// if let Err(e) = op_env
// .create_new_with_path("/global-states/new/a", ObjectMapSimpleContentType::Map)
// .await
// {
// assert!(e.code() == BuckyErrorCode::AlreadyExists);
// } else {
// unreachable!();
// }

let begin = std::time::Instant::now();
// 首先移除老的值,如果存在的话
Expand Down Expand Up @@ -212,14 +212,14 @@ impl SameZoneGlobalStateBench {
.await
.unwrap();

if let Err(e) = op_env
.create_new_with_path("/global-states/new/a", ObjectMapSimpleContentType::Map)
.await
{
assert!(e.code() == BuckyErrorCode::AlreadyExists);
} else {
unreachable!();
}
// if let Err(e) = op_env
// .create_new_with_path("/global-states/new/a", ObjectMapSimpleContentType::Map)
// .await
// {
// assert!(e.code() == BuckyErrorCode::AlreadyExists);
// } else {
// unreachable!();
// }

let begin = std::time::Instant::now();
// 首先移除老的值,如果存在的话
Expand Down

0 comments on commit 2c12de7

Please sign in to comment.