Save Peer Status separately in the FileStore (#554)

Due to peer reconnects when restarting the Management service,
there are lots of SaveStore operations to update peer status.

Store.SavePeerStatus stores peer status separately and the
FileStore implementation stores it in memory.
This commit is contained in:
Misha Bragin
2022-11-08 10:46:12 +01:00
committed by GitHub
parent 7e262572a4
commit f37b43a542
13 changed files with 150 additions and 29 deletions

View File

@ -398,7 +398,7 @@ func startManagement(t *testing.T, port int, config *Config) (*grpc.Server, erro
return nil, err
}
s := grpc.NewServer(grpc.KeepaliveEnforcementPolicy(kaep), grpc.KeepaliveParams(kasp))
store, err := NewStore(config.Datadir)
store, err := NewFileStore(config.Datadir)
if err != nil {
return nil, err
}