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:
parent
c9a08540c3
commit
070823baa4
6 changed files with 29 additions and 0 deletions
|
|
@ -646,6 +646,13 @@ void RemoteStore::connect()
|
|||
}
|
||||
|
||||
|
||||
unsigned int RemoteStore::getProtocol()
|
||||
{
|
||||
auto conn(connections->get());
|
||||
return conn->daemonVersion;
|
||||
}
|
||||
|
||||
|
||||
void RemoteStore::flushBadConnections()
|
||||
{
|
||||
connections->flushBad();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue