async chan write read, no write for closed chan

This commit is contained in:
Chris Lu
2020-05-10 03:48:35 -07:00
parent 78afb8bf46
commit 6bf3eb69cb
5 changed files with 34 additions and 5 deletions

View File

@@ -57,6 +57,7 @@ func (broker *MessageBroker) Subscribe(stream messaging_pb.SeaweedMessaging_Subs
lastReadTime = time.Unix(0, in.Init.TimestampNs)
case messaging_pb.SubscriberMessage_InitMessage_LATEST:
case messaging_pb.SubscriberMessage_InitMessage_EARLIEST:
lastReadTime = time.Unix(0, 0)
}
var processedTsNs int64