class Raft::Error::NotLeader

Overview

Raised when an operation requires the leader role but this node is not the leader.

The #leader_hint field, when set, contains the ID of the node believed to be the current leader, allowing clients to redirect their requests.

Defined in:

raft/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(leader_hint : String | Nil = nil) #

[View source]

Instance Method Detail

def leader_hint : String | Nil #

The ID of the current leader, if known. nil when the leader is unknown.


[View source]