public Follower(RachisConsensus engine, long term, RemoteConnection remoteConnection) { _engine = engine; _connection = remoteConnection; _term = term; _debugName = $"Follower in term {_term}"; _debugRecorder = _engine.InMemoryDebug.GetNewRecorder(_debugName); _debugRecorder.Start(); }
public Follower(RachisConsensus engine, long term, RemoteConnection remoteConnection) { _engine = engine; _connection = remoteConnection; _term = term; // this will give us a unique identifier for this follower var uniqueId = Interlocked.Increment(ref _uniqueId); _debugName = $"Follower in term {_term} (id: {uniqueId})"; _debugRecorder = _engine.InMemoryDebug.GetNewRecorder(_debugName); _debugRecorder.Start(); }