Skip to content

Commit 522e2d5

Browse files
Fixes
1 parent f1f6eb4 commit 522e2d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

goldmane/pkg/storage/bucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func (b *AggregationBucket) Iter(fn func(FlowBuilder) bool) {
129129
defer b.Unlock()
130130

131131
b.Flows.Iter(func(d *DiachronicFlow) error {
132-
if !fn(NewDeferredFlowBuilder(d, b.StartTime, b.EndTime)) {
132+
if fn(NewDeferredFlowBuilder(d, b.StartTime, b.EndTime)) {
133133
return set.StopIteration
134134
}
135135
return nil

goldmane/pkg/stream/stream.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func (s *stream) run() {
7373
b.Iter(func(f storage.FlowBuilder) bool {
7474
if err := chanutil.WriteWithDeadline(s.ctx, s.out, f, 60*time.Second); err != nil {
7575
// If we hit an error, indicate that we should stop iteration.
76+
s.rl.WithFields(logrus.Fields{"id": s.ID}).WithError(err).Debug("Error writing flow to stream output")
7677
return true
7778
}
7879
// If we didn't hit an error, continue iteration.

0 commit comments

Comments
 (0)