Skip to content

Commit 1b97755

Browse files
committed
Merge branch 'main' into api/make-replier-id-global
2 parents 277c844 + 583cb62 commit 1b97755

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ macro_rules! downcast_or_new {
8686
pub(crate) use downcast_or_new;
8787

8888
macro_rules! enum_mapper {
89-
($($path:ident)::*: $repr:ty { $($variant:ident $(= $discriminator:literal)?),* $(,)? }) => {
89+
($($path:ident)::*: $repr:ty { $($variant:ident $(= $discriminator:literal)?,)* }) => {
9090
$crate::macros::enum_mapper!(@ $($path)::*, $($path)::*: $repr { $($variant $(= $discriminator)?,)* });
9191
};
9292
(@ $ty:ident::$($tt:ident)::*, $path:path: $repr:ty { $($variant:ident $(= $discriminator:literal)?,)* }) => {

src/qos.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl Priority {
4040
enum_mapper!(zenoh::qos::CongestionControl: u8 {
4141
Drop = 0,
4242
Block = 1,
43+
BlockFirst = 2,
4344
});
4445

4546
#[pymethods]
@@ -50,7 +51,7 @@ impl CongestionControl {
5051

5152
enum_mapper!(zenoh::qos::Reliability: u8 {
5253
BestEffort,
53-
Reliable
54+
Reliable,
5455
});
5556

5657
#[pymethods]

zenoh/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class CongestionControl(Enum):
5757

5858
DROP = auto()
5959
BLOCK = auto()
60+
BLOCK_FIRST = _unstable(auto())
6061

6162
DEFAULT = DROP
6263

0 commit comments

Comments
 (0)