mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:54:01 +03:00
Test event stream
This commit is contained in:
@@ -18,12 +18,10 @@ type eventStream struct {
|
||||
func (e eventStream) Send(ctx context.Context, evt mtglib.Event) {
|
||||
var chanNo uint32
|
||||
|
||||
streamID := evt.StreamID()
|
||||
|
||||
if streamID == "" {
|
||||
chanNo = rand.Uint32()
|
||||
} else {
|
||||
if streamID := evt.StreamID(); streamID != "" {
|
||||
chanNo = xxhash.ChecksumString32(streamID)
|
||||
} else {
|
||||
chanNo = rand.Uint32()
|
||||
}
|
||||
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user