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

modified event transmission method to gRPC request stream#36

Merged
stormcat24 merged 1 commit intomasterfrom
feature/request_stream
May 29, 2017
Merged

modified event transmission method to gRPC request stream#36
stormcat24 merged 1 commit intomasterfrom
feature/request_stream

Conversation

@stormcat24
Copy link
Contributor

No description provided.

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

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.

1 participant

Comments