Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rbhnt committed Feb 10, 2025
1 parent c8abfae commit 70a1f5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/node/events/stream_ephemeral.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func (s *StreamCache) onStreamCreated(
event.Stream.Flags&uint64(registries.StreamFlagSealed) != 0,
); err != nil {
logging.FromCtx(ctx).Errorw("Failed to normalize ephemeral stream", "err", err, "streamId", event.GetStreamId())
} else {
// Cache the stream
stream.mu.Lock()
s.cache.Store(stream.streamId, stream)
stream.mu.Unlock()
}

// Cache the stream
stream.mu.Lock()
s.cache.Store(stream.streamId, stream)
stream.mu.Unlock()
}()
}

Expand Down

0 comments on commit 70a1f5d

Please sign in to comment.