Skip to content

Commit

Permalink
#808 data_version null error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
847850277 committed Jul 19, 2024
1 parent 1cf495e commit 7980dd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rocketmq-namesrv/src/route/route_info_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@ impl RouteInfoManager {
}
}
}
let default_data_version = DataVersion::default();
let data_version = topic_config_serialize_wrapper
.data_version()
.as_ref()
.unwrap();
.unwrap_or(&default_data_version);
for topic_config in tc_table.values() {
let mut config = topic_config.clone();
if (register_first
Expand Down

0 comments on commit 7980dd5

Please sign in to comment.