Skip to content

Commit

Permalink
Add some comments about try_build_batch function
Browse files Browse the repository at this point in the history
  • Loading branch information
entropidelic committed Sep 23, 2024
1 parent ce25445 commit c25b6d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,11 @@ impl Batcher {
*batch_posting = false;
None
}
// FIXME: We should refactor this code and instead of returning None, return an error.
// See issue https://github.com/yetanotherco/aligned_layer/issues/1046.
Err(e) => {
error!("Unexpected error: {:?}", e);
*batch_posting = false;
None
}
}
Expand Down

0 comments on commit c25b6d8

Please sign in to comment.