Closed njbestway closed 5 months ago
I changed it to return nil
and merged this PR because the previous code decided to handle this error in the callback. I think it's quite clear that anyone who doesn't pass a callback will miss the error. The callback should be passed in production. Feel free to open an issue or continue in #79
to discuss it
I changed it to
return nil
and merged this PR because the previous code decided to handle this error in the callback. I think it's quite clear that anyone who doesn't pass a callback will miss the error. The callback should be passed in production. Feel free to open an issue or continue in #79 to discuss it
Agree! Nobody wants to dealwith both the err func Passed
and the err Returned
.
This PR is to fix 2 problems:
WritePoint
when All DBServers are Down. Theresp
maybe nil when any Err ocurrs.callback func
is nil or not indeed. Just making func call using thecallback
directly doesn't seem friendly.It proves to be slightly confusing.