From e9fa4ff0b393ff4db876ab3f7ff6c21d0752b114 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Fri, 13 Jan 2017 08:04:33 -0700 Subject: [PATCH] minor optimization --- controller/endpoint/disque.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/endpoint/disque.go b/controller/endpoint/disque.go index b47ec998..169177a9 100644 --- a/controller/endpoint/disque.go +++ b/controller/endpoint/disque.go @@ -109,11 +109,11 @@ func (conn *DisqueEndpointConn) Send(msg string) error { func buildRedisCommand(args []string) []byte { var cmd []byte cmd = append(cmd, '*') - cmd = append(cmd, strconv.FormatInt(int64(len(args)), 10)...) + cmd = strconv.AppendInt(cmd, int64(len(args)), 10) cmd = append(cmd, '\r', '\n') for _, arg := range args { cmd = append(cmd, '$') - cmd = append(cmd, strconv.FormatInt(int64(len(arg)), 10)...) + cmd = strconv.AppendInt(cmd, int64(len(arg)), 10) cmd = append(cmd, '\r', '\n') cmd = append(cmd, arg...) cmd = append(cmd, '\r', '\n')