zero-contrib icon indicating copy to clipboard operation
zero-contrib copied to clipboard

Fix: serialization Error of Nacos Parameters

Open maomao94 opened this issue 1 year ago • 0 comments

Fix: serialization Error of Nacos Parameters (notLoadCacheAtStart, updateCacheWhenEmpty)

Greptile Summary

Fixed Nacos parameter serialization issues by adding 'string' tags to boolean fields in the target struct, ensuring proper handling of URL query parameters for configuration.

  • Modified zrpc/registry/nacos/target.go to add 'string' tag to NotLoadCacheAtStart and UpdateCacheWhenEmpty boolean fields
  • Added proper struct field alignment for improved code readability
  • Ensures consistent parameter handling between URL queries and environment variables

maomao94 avatar Oct 25 '24 05:10 maomao94