change default device

This commit is contained in:
zhiqiang feng
2021-02-01 16:07:00 +08:00
parent 994b432820
commit d570e6cee8
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -56,5 +56,7 @@ func PulsarSend(data string) error {
func ClosePulsar() {
producer.Close()
client.Close()
if client != nil {
client.Close()
}
}