Merge pull request #3 from Selly-Modules/develop

fix
This commit is contained in:
Minh Nguyen 2022-03-23 09:45:35 +07:00 committed by GitHub
commit 279c226404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,7 @@ func publishWithJetStream(streamName, subject string, data []byte) (isPublished
var req = RequestBody{Body: data} var req = RequestBody{Body: data}
// Publish jet stream // Publish jet stream
if err := client.natsJetStream.Publish(streamName, subject, toBytes(req)); err != nil { if err = client.natsJetStream.Publish(streamName, subject, toBytes(req)); err != nil {
return return
} }

6
go.mod
View File

@ -1,10 +1,14 @@
module github.com/Selly-Modules/appier module github.com/Selly-Modules/appier
go 1.16 go 1.17
require github.com/Selly-Modules/natsio v0.0.0-20220321031929-3fe4271f1bbc require github.com/Selly-Modules/natsio v0.0.0-20220321031929-3fe4271f1bbc
require ( require (
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/nats-io/nats.go v1.13.0 // indirect
github.com/nats-io/nkeys v0.3.0 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/thoas/go-funk v0.9.2 // indirect github.com/thoas/go-funk v0.9.2 // indirect
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd // indirect
) )