Skip to content

Commit

Permalink
Update discovery version and revision when remove nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Sep 9, 2023
1 parent b5d18a0 commit c79f590
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/atframe/etcdcli/etcd_discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ LIBATAPP_MACRO_API void etcd_discovery_node::copy_from(const atapp::protocol::at
}
if (version.modify_revision > node_version_.modify_revision) {
node_version_.modify_revision = version.modify_revision;
}
if (version.version > node_version_.version) {
node_version_.version = version.version;
} else if (version.version > node_version_.version) {
node_version_.version = version.version;
}
}
Expand All @@ -201,8 +201,8 @@ LIBATAPP_MACRO_API void etcd_discovery_node::update_version(const node_version &
}
if (version.modify_revision > node_version_.modify_revision) {
node_version_.modify_revision = version.modify_revision;
}
if (version.version > node_version_.version) {
node_version_.version = version.version;
} else if (version.version > node_version_.version) {
node_version_.version = version.version;
}
}
Expand Down

0 comments on commit c79f590

Please sign in to comment.