lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

perf(reqresp): improve the reqresp request/response methods

Open nazarhussain opened this issue 9 months ago • 1 comments

Motivation

Avoid conditional parameters inside most frequently used methods.

Description

  • For every message on the network sendRequest is used and that includes 4 conditions with ?? on timeout values. These can be avoided.
  • The handleRequest is now renamed as sendResponse to make it aligned with counter part function.
  • For every response to network message handleRequest was extra conditions for timeout values that can be avoided.

Steps to test or reproduce

  • Run all tests

nazarhussain avatar May 17 '24 13:05 nazarhussain