mirror of https://github.com/dapr/go-sdk.git
Co-authored-by: Ben.li <ben.li@shapejoy.com> Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
This commit is contained in:
parent
dea02bd1e3
commit
aec809a7d5
|
@ -47,9 +47,10 @@ func (c *GRPCClient) PublishEventfromCustomContent(ctx context.Context, pubsubNa
|
|||
}
|
||||
|
||||
envelop := &pb.PublishEventRequest{
|
||||
PubsubName: pubsubName,
|
||||
Topic: topicName,
|
||||
Data: bytes,
|
||||
PubsubName: pubsubName,
|
||||
Topic: topicName,
|
||||
Data: bytes,
|
||||
DataContentType: "application/json",
|
||||
}
|
||||
|
||||
_, err = c.protoClient.PublishEvent(c.withAuthToken(ctx), envelop)
|
||||
|
|
Loading…
Reference in New Issue