eclipse-uprotocol / up-transport-zenoh-rust

Rust client-side library to talk to the Zenoh implementation of uProtocol
Apache License 2.0
6 stars 5 forks source link

unregister_listener() when listener isn't registered to topic already #36

Closed matthewd0123 closed 4 months ago

matthewd0123 commented 5 months ago

According to @sophokles73 PR to up-spec, https://github.com/eclipse-uprotocol/up-spec/pull/134, unregister_listener() should return NOT_FOUND if you try to unregister on a topic that doesn't exist (https://github.com/eclipse-uprotocol/up-spec/pull/134). Right now, up-client-zenoh-rust is returning INVALID_ARGUMENT ( {'message': "Publish listener doesn't exist", 'code': '3'}). This should be changed to NOT_FOUND (error code 5).

matthewd0123 commented 5 months ago

@agosh1