From fcc909953367092860b0e0d90edc73a8c75a6004 Mon Sep 17 00:00:00 2001 From: Sinh Date: Fri, 19 Aug 2022 10:02:29 +0700 Subject: [PATCH] update import --- client/communication.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/communication.go b/client/communication.go index 681493f..2cbd644 100644 --- a/client/communication.go +++ b/client/communication.go @@ -4,6 +4,7 @@ import ( "encoding/json" "github.com/Selly-Modules/natsio" + "github.com/Selly-Modules/natsio/model" "github.com/Selly-Modules/natsio/subject" ) @@ -16,7 +17,7 @@ func GetCommunication() Communication { } // RequestHttp ... -func (c Communication) RequestHttp(p communication.CommunicationRequestHttp) (r *communication.CommunicationHttpResponse, err error) { +func (c Communication) RequestHttp(p model.CommunicationRequestHttp) (r *model.CommunicationHttpResponse, err error) { msg, err := natsio.GetServer().Request(subject.CommunicationRequestHTTP, toBytes(p)) if err != nil { return nil, err