joao-r-reis commented on code in PR #1929:
URL: 
https://github.com/apache/cassandra-gocql-driver/pull/1929#discussion_r2813218760


##########
events.go:
##########
@@ -204,13 +406,13 @@ func (s *Session) handleNodeEvent(frames []frame) {
                // ignore events we received if they were disabled
                // see 
https://github.com/apache/cassandra-gocql-driver/issues/1591
                switch f.change {
-               case "UP":
+               case nodeStateChangeUp:
                        if !s.cfg.Events.DisableNodeStatusEvents {
                                s.handleNodeUp(f.host, f.port)
                        }
-               case "DOWN":
+               case nodeStateChangeDown:
                        if !s.cfg.Events.DisableNodeStatusEvents {
-                               s.handleNodeDown(f.host, f.port)
+                               s.suggestNodeDown(f.host, f.port)

Review Comment:
   I'd say we should try to avoid changing current behavior and aim to only add 
the custom listeners on top of what the current behavior is for the scope of 
this issue. We can evaluate whether we should change the actual handling of the 
events (and possibly how the listeners are called when they are tied together) 
in a separate issue/pr



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to