mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Fixed bogus error handling in change tracking notification.
This commit is contained in:
parent
cf9cbe7087
commit
52932b0351
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user