mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 17:20: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()
|
ct.mutex.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ct *ChangeTracker) FlushChanges(url string) (err error) {
|
func (ct *ChangeTracker) FlushChanges(url string) {
|
||||||
var oldChanges map[quantizedXZ]bool
|
var oldChanges map[quantizedXZ]bool
|
||||||
ct.mutex.Lock()
|
ct.mutex.Lock()
|
||||||
if len(ct.changes) > 0 {
|
if len(ct.changes) > 0 {
|
||||||
@ -59,6 +59,7 @@ func (ct *ChangeTracker) FlushChanges(url string) (err error) {
|
|||||||
changes[i] = change
|
changes[i] = change
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
var err error
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
encoder := json.NewEncoder(&buf)
|
encoder := json.NewEncoder(&buf)
|
||||||
if err = encoder.Encode(changes); err != nil {
|
if err = encoder.Encode(changes); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user