Increase default cost for p2p remotes from 200 to 1000. This makes git-annex prefer transferring data from special remotes when possible.

This commit is contained in:
Joey Hess 2017-01-06 15:23:30 -04:00
parent 5d39fe6589
commit f275caf732
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
git-annex (6.20170102) UNRELEASED; urgency=medium
* Increase default cost for p2p remotes from 200 to 1000.
This makes git-annex prefer transferring data from special
remotes when possible.
-- Joey Hess <id@joeyh.name> Fri, 06 Jan 2017 15:22:06 -0400
git-annex (6.20170101) unstable; urgency=medium
* XMPP support has been removed from the assistant in this release.

View file

@ -45,7 +45,7 @@ remote = RemoteType {
chainGen :: P2PAddress -> Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote)
chainGen addr r u c gc = do
connpool <- mkConnectionPool
cst <- remoteCost gc expensiveRemoteCost
cst <- remoteCost gc veryExpensiveRemoteCost
let this = Remote
{ uuid = u
, cost = cst