diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-08-30T21·28+0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-09-02T10·54+0200 |
commit | 070823baa4c3c397c8a5eb0378944187e7f4903c (patch) | |
tree | 5c0260ee081c74d4fb1965063e8445f6a9156640 /src/libstore/remote-store.cc | |
parent | c9a08540c3d64d1285928d1ce3d3d416a2547dd9 (diff) |
Store: expose the protocol version used by a store
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index ea86ef052f53..eff5d252419f 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -646,6 +646,13 @@ void RemoteStore::connect() } +unsigned int RemoteStore::getProtocol() +{ + auto conn(connections->get()); + return conn->daemonVersion; +} + + void RemoteStore::flushBadConnections() { connections->flushBad(); |