remove not save peer config when version is zero
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
c749ebff46
commit
87600d36e4
2 changed files with 4 additions and 11 deletions
|
|
@ -1151,10 +1151,6 @@ impl LoginConfigHandler {
|
|||
///
|
||||
/// * `config` - [`PeerConfig`] to save.
|
||||
pub fn save_config(&mut self, config: PeerConfig) {
|
||||
if self.version == 0 {
|
||||
log::info!("skip saving peer config {}", self.id);
|
||||
return;
|
||||
}
|
||||
config.store(&self.id);
|
||||
self.config = config;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue