rumqtt icon indicating copy to clipboard operation
rumqtt copied to clipboard

refactor: custom `NetworkError` and move code into relevant modules

Open de-sh opened this issue 3 years ago • 1 comments

Changes

  • Create custom NetworkError type
  • Move readb from Network into MqttState
  • Move timeouts into Network::flush()
  • Reorganize imports

de-sh avatar Jan 16 '23 08:01 de-sh

It's a good idea to pass Network to MqttState instead of passing MqttState to network. This allows us to easily separate networking implementation from MQTT state management. I'll discuss these changes with @yatinmaan and merge this.

tekjar avatar Jan 16 '23 14:01 tekjar