Currently, the protocol string "/topology/message/0.0.1" is hardcoded in multiple places within the codebase. To improve maintainability and avoid duplication, we should extract this protocol string into a global constant.
Proposed Solution
Define a global constant for the protocol string in a common configuration file.
Replace all occurrences of the hardcoded protocol string with the global constant.
Currently, the protocol string
"/topology/message/0.0.1"
is hardcoded in multiple places within the codebase. To improve maintainability and avoid duplication, we should extract this protocol string into a global constant.Proposed Solution