-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/rename streams to router #92
Conversation
core/message.go
Outdated
func (msg *Message) GetStream() Stream { | ||
return StreamRegistry.GetStreamOrFallback(msg.streamID) | ||
// GetRouter returns the stream object behind the current StreamID. | ||
func (msg *Message) GetStream() Router { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function should be renamed
core/message.go
Outdated
} | ||
|
||
// GetPreviousStream returns the stream object behind the previous StreamID. | ||
func (msg *Message) GetPreviousStream() Stream { | ||
return StreamRegistry.GetStreamOrFallback(msg.prevStreamID) | ||
func (msg *Message) GetPreviousStream() Router { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function should be renamed
core/simpleconsumer.go
Outdated
@@ -218,7 +218,7 @@ func (cons *SimpleConsumer) Enqueue(data []byte) { | |||
// EnqueueWithSequence works like Enqueue but allows to set a custom sequence | |||
// number. The internal sequence number is not incremented by this function. | |||
func (cons *SimpleConsumer) EnqueueWithSequence(data []byte, seq uint64) { | |||
numStreams := len(cons.streams) | |||
numStreams := len(cons.routers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename variable to numRouters
core/streamregistry.go
Outdated
// AddAllWildcardProducersToAllStreams executes AddWildcardProducersToStream on | ||
// all currently registered streams | ||
// AddAllWildcardProducersToAllStreams executes AddWildcardProducersToRouter on | ||
// all currently registered routers | ||
func (registry *streamRegistry) AddAllWildcardProducersToAllStreams() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename function
@arnecls : PR is updated |
This PR is related to issue #80
What this PR does:
gollum -l