From db7fa46c30d8bd3c23fb160c5309b4197069e0e8 Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 18 Jun 2021 15:49:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.go | 2 +- send_delay.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.go b/common.go index a002aa5..30ddf39 100644 --- a/common.go +++ b/common.go @@ -11,7 +11,7 @@ type DelayMsgBody struct { Exchange string Key string Data string - Delay int + Delay int64 } type MsgSend struct { Result string diff --git a/send_delay.go b/send_delay.go index 0ecb0f7..413a3e1 100644 --- a/send_delay.go +++ b/send_delay.go @@ -11,7 +11,7 @@ import ( "github.com/golang/protobuf/proto" ) -func SendDelay(exchange, key string, data interface{}, delay int, url ...string) (*MsgSend, error) { +func SendDelay(exchange, key string, data interface{}, delay int64, url ...string) (*MsgSend, error) { conn, err := rpc_server_conn(url...) if err != nil {