Fixed bogus error handling in change tracking notification.

This commit is contained in:
Sascha L. Teichmann 2014-11-03 18:57:10 +01:00
parent cf9cbe7087
commit 52932b0351

View File

@ -41,7 +41,7 @@ func (ct *ChangeTracker) BlockChanged(key []byte) {
ct.mutex.Unlock()
}
func (ct *ChangeTracker) FlushChanges(url string) (err error) {
func (ct *ChangeTracker) FlushChanges(url string) {
var oldChanges map[quantizedXZ]bool
ct.mutex.Lock()
if len(ct.changes) > 0 {
@ -59,6 +59,7 @@ func (ct *ChangeTracker) FlushChanges(url string) (err error) {
changes[i] = change
i++
}
var err error
var buf bytes.Buffer
encoder := json.NewEncoder(&buf)
if err = encoder.Encode(changes); err != nil {