Allow mismatched versioning connections with rpc_client, with a warning. (#2137)

This commit is contained in:
D-Stacks 2022-09-14 08:53:30 +02:00 committed by GitHub
parent a1dcb34c29
commit 953838e0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ func (c *RPCClient) connect() error {
remoteVersion := getInfoResponse.ServerVersion
if localVersion != remoteVersion {
return errors.Errorf("Server version mismatch, expect: %s, got: %s", localVersion, remoteVersion)
log.Warnf("version mismatch, client: %s, server: %s - expected responses and requests may deviate", localVersion, remoteVersion)
}
return nil