Skip to content
Snippets Groups Projects
Commit d49e760c authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

refactor: "raft_interact" -> stringify_cfunc!(raft_interact)

parent 72ed6c40
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ use std::rc::Rc;
use std::time::Duration;
use std::time::Instant;
use crate::stringify_cfunc;
use crate::traft::ContextCoercion as _;
use crate::traft::Peer;
use crate::traft::RaftId;
......@@ -446,7 +447,7 @@ fn raft_main_loop(
) {
let mut next_tick = Instant::now() + Node::TICK;
let mut pool = ConnectionPool::builder()
.handler_name(".raft_interact")
.handler_name(stringify_cfunc!(raft_interact))
.call_timeout(Node::TICK * 4)
.connect_timeout(Node::TICK * 4)
.inactivity_timeout(Duration::from_secs(60))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment