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 {