Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

modified event transmission method to gRPC request stream #36

Merged
merged 1 commit into from
May 29, 2017

Conversation

stormcat24
Copy link
Contributor

No description provided.

@@ -16,6 +16,10 @@ func (c *Client) ReceivePayload() <-chan event.Payload {
return c.payloadChan
}

func (c *Client) SetEvents(events []string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint]

  • [golint] exported method Client.SetEvents should have comment or be unexported

@@ -59,6 +63,20 @@ func (cm *ClientManager) RemoveClient(client Client) {
close(client.payloadChan)
}

func (cm *ClientManager) DeleteEvents(client *Client) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint]

  • [golint] exported method ClientManager.DeleteEvents should have comment or be unexported

zap.Array("request-events", zapcore.ArrayMarshalerFunc(func(enc zapcore.ArrayEncoder) error {
for _, e := range request.Events {
enc.AppendString(e.Type)
func (ss *StreamServer) Events(es proto.StreamService_EventsServer) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint]

  • [golint] exported method StreamServer.Events should have comment or be unexported

if grpc.Code(err) != codes.Canceled {
ss.errChan <- errors.Wrap(err, "Recv error")
return
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[golint]

  • [golint] if block ends with a return statement, so drop this else and outdent its block

@stormcat24 stormcat24 merged commit 9942376 into master May 29, 2017
@stormcat24 stormcat24 deleted the feature/request_stream branch May 29, 2017 00:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant