AdvancedPublisherBuilder
uses incorrect lifetime when creating AdvancedPublisher
#1670
Labels
bug
Something isn't working
Describe the bug
The
Resolvable
implementation forAdvancedPublisherBuilder
uses the wrong lifetime, as well asAdvancedPublisher::new
.Current implementation:
Fixed implementation:
The fix is based on the
Resolvable
implementation for the regularPublisherBuilder
, which similarly uses the lifetime associated with theKeyExpr
.To reproduce
Create an
AdvancedPublisher
with aKeyExpr<'static>
. The resulting instance won't be anAdvancedPublisher<'static>
.System info
Zenoh 1.1.0
The text was updated successfully, but these errors were encountered: