openGemini / opengemini-client-go

CNCF openGemini Go Client Library
https://opengemini.org/
Apache License 2.0
24 stars 17 forks source link

Error uses the common naming format #101

Closed dream-kzx closed 4 months ago

dream-kzx commented 4 months ago

https://github.com/openGemini/opengemini-client-go/blob/5898fcc3966deb7f364cf7eedbefcd6108c541fb/opengemini/servers_check.go#L10

Error uses the common naming format. ErrAllServersDown or AllServersDownErr

xuthus5 commented 4 months ago

in the style of go, it is better to use ErrXXX.

shoothzj commented 4 months ago

Thanks for your report, I would prefer ErrAllServersDown