diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-12-09 14:52:38 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-12-09 15:01:09 -0400 |
commit | b3b800bb6140543306ec65751506ae2862ca345f (patch) | |
tree | 6357ef2d4ea6a6f302b9b00f45d25e4c997b5ec2 /git-annex.cabal | |
parent | 94e91f857e9ae3522c31c3d2268475aeae45fdb3 (diff) |
refactor ref change watching
Added to change notification to P2P protocol.
Switched to a TBChan so that a single long-running thread can be
started, and serve perhaps intermittent requests for change
notifications, without buffering all changes in memory.
The P2P runner currently starts up a new thread each times it waits
for a change, but that should allow later reusing a thread. Although
each connection from a peer will still need a new watcher thread to run.
The dependency on stm-chans is more or less free; some stuff in yesod
uses it, so it was already indirectly pulled in when building with the
webapp.
This commit was sponsored by Francois Marier on Patreon.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r-- | git-annex.cabal | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-annex.cabal b/git-annex.cabal index 465769ea0..ec54a146d 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -371,6 +371,7 @@ Executable git-annex regex-tdfa, socks, byteable, + stm-chans, securemem CC-Options: -Wall GHC-Options: -Wall -fno-warn-tabs @@ -513,6 +514,7 @@ Executable git-annex Annex.Branch.Transitions Annex.BranchState Annex.CatFile + Annex.ChangedRefs Annex.CheckAttr Annex.CheckIgnore Annex.Common |