1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Store: expose the protocol version used by a store

This commit is contained in:
Daiderd Jordan 2018-08-30 23:28:47 +02:00
parent c9a08540c3
commit 070823baa4
No known key found for this signature in database
GPG key ID: D02435D05B810C96
6 changed files with 29 additions and 0 deletions

View file

@ -646,6 +646,13 @@ void RemoteStore::connect()
}
unsigned int RemoteStore::getProtocol()
{
auto conn(connections->get());
return conn->daemonVersion;
}
void RemoteStore::flushBadConnections()
{
connections->flushBad();