client: add batching of sending events to the server

This commit is contained in:
2013-09-05 23:20:29 -04:00
parent 65e692b701
commit 793e4eb6b2
2 changed files with 57 additions and 4 deletions

View File

@ -107,6 +107,7 @@ func StartClient(args []string) {
go PathLocker(globals.db)
//spawn goroutines to handle local events
go SendEvents(globals)
localFileUpdates := make(chan *asink.Event)
go StartWatching(globals.syncDir, localFileUpdates)