mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-04-02 12:39:05 +00:00
fix: crash when adding new pool
This commit is contained in:
parent
90e4a06032
commit
6751ea1f9a
1 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ fn add_save_node(
|
|||
let rpc = current.2.clone();
|
||||
// zmq can be rig in case of Pool
|
||||
let zmq = current.3.clone();
|
||||
let poolnode = &mut node_vec[existing_index].1;
|
||||
let poolnode = &mut node_vec[existing_index - 1].1;
|
||||
poolnode.set_ip(ip);
|
||||
poolnode.set_port(rpc);
|
||||
poolnode.set_custom(zmq);
|
||||
|
@ -251,7 +251,7 @@ fn add_save_node(
|
|||
let rpc = current.2.clone();
|
||||
// zmq can be rig in case of Pool
|
||||
let zmq = current.3.clone();
|
||||
let poolnode = match node_vec[existing_index].1 {
|
||||
let poolnode = match node_vec[existing_index - 1].1 {
|
||||
PoolNode::Node(_) => PoolNode::Node(Node { ip, rpc, zmq }),
|
||||
PoolNode::Pool(_) => PoolNode::Pool(Pool {
|
||||
rig: zmq,
|
||||
|
|
Loading…
Reference in a new issue