Skip to content

Commit

Permalink
Do not use fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Sep 30, 2024
1 parent 7a4bf2f commit 858dec9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion validator/apply-block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void ApplyBlock::applied_set() {
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand Down
4 changes: 2 additions & 2 deletions validator/db/rootdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void RootDb::store_block_data(BlockHandle handle, td::Ref<BlockData> block, td::
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand Down Expand Up @@ -309,7 +309,7 @@ void RootDb::store_block_state(BlockHandle handle, td::Ref<ShardState> state,
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand Down
2 changes: 1 addition & 1 deletion validator/downloaders/download-state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void DownloadShardState::written_shard_state(td::Ref<ShardState> state) {
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});
publisher_->storeBlockApplied(handle_->id(), std::move(final_publish));
Expand Down
6 changes: 3 additions & 3 deletions validator/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ void ValidatorManagerImpl::completed_prestart_sync() {
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand All @@ -1986,7 +1986,7 @@ void ValidatorManagerImpl::completed_prestart_sync() {
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand All @@ -2006,7 +2006,7 @@ void ValidatorManagerImpl::completed_prestart_sync() {
publisher->enqueuePublishBlockState(wc, shard, std::get<1>(answer));
}
} else {
LOG(FATAL) << "Failed to parse!";
LOG(ERROR) << "Skip publish block!";
}
});

Expand Down

0 comments on commit 858dec9

Please sign in to comment.