• Levin Zimmermann's avatar
    proto: Implement Error for NotPrimaryMaster · 8811f8b4
    Levin Zimmermann authored
    When a client receives 'NotPrimaryMaster' from a secondary master, the
    situation is similar to the situation when we receive an error: the
    other node tells us, don't connect with me, connect with someone else.
    Finally the peer even closes the connection.
    
    Due to this similarity in structure (& because it helps us later to
    teach NEO/go to correctly handle 'NotPrimaryMaster' with minimal
    changes), we implement 'Error' for 'proto.NotPrimaryMaster'. Now
    'NotPrimaryMaster' can be treated like an error.
    8811f8b4
proto-misc.go 5.53 KB