Attempt to publish to at least mesh_n peers (#5357)

* Code improvements

* Fix gossipsub tests

* Merge latest unstable

* Differentiate errors and better scoring

* Attempt to publish to mesh_n peers
This commit is contained in:
Age Manning
2024-03-07 20:48:51 +11:00
committed by GitHub
parent b9614571a3
commit fc8f1a4ca7
3 changed files with 37 additions and 7 deletions

View File

@@ -36,6 +36,9 @@ pub enum PublishError {
MessageTooLarge,
/// The compression algorithm failed.
TransformFailed(std::io::Error),
/// Messages could not be sent because all queues for peers were full. The usize represents the
/// number of peers that have full queues.
AllQueuesFull(usize),
}
impl std::fmt::Display for PublishError {