RaftFleet.whereis_leader

You're seeing just the function whereis_leader, go back to RaftFleet module for more information.

Specs

whereis_leader(atom()) :: nil | pid()

Tries to find the current leader of the consensus group specified by name.

Usually you don't have to use this function as command/5 and query/5 automatically resolves where the leader resides. This function is useful when you want to inspect status of a consensus group by using e.g. RaftedValue.status/1.