Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #77 from UlfBj/master
Browse files Browse the repository at this point in the history
Issue#67: bug fix crash on subscribe error response.
  • Loading branch information
UlfBj authored Nov 2, 2023
2 parents 1aa77e1 + 5714877 commit 0026afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/grcputils.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ func createSubscribeStreamPb(protoMessage *pb.SubscribeStreamMessage, messageMap
if messageMap["action"] == "subscribe" { // RESPONSE
protoMessage.MType = pb.SubscribeResponseType_RESPONSE
protoMessage.Response = &pb.SubscribeStreamMessage_SubscribeResponseMessage{}
protoMessage.Response.SubscriptionId = messageMap["subscriptionId"].(string)
protoMessage.Response.RequestId = messageMap["requestId"].(string)
protoMessage.Response.Ts = messageMap["ts"].(string)
if messageMap["error"] == nil {
protoMessage.Response.SubscriptionId = messageMap["subscriptionId"].(string)
protoMessage.Status = pb.ResponseStatus_SUCCESS
} else {
protoMessage.Status = pb.ResponseStatus_ERROR
Expand Down

0 comments on commit 0026afa

Please sign in to comment.