From 2223b23b958f0ee734715f95742ebd1f347f5436 Mon Sep 17 00:00:00 2001 From: Travis Turner Date: Fri, 14 Sep 2018 09:40:48 -0500 Subject: [PATCH] re-generate the apimethod stringer --- apimethod_string.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apimethod_string.go b/apimethod_string.go index f3af365f0..01217092f 100644 --- a/apimethod_string.go +++ b/apimethod_string.go @@ -2,7 +2,7 @@ package pilosa -import "fmt" +import "strconv" const _apiMethod_name = "apiClusterMessageapiCreateFieldapiCreateIndexapiDeleteFieldapiDeleteIndexapiDeleteViewapiExportCSVapiFragmentBlockDataapiFragmentBlocksapiFieldapiFieldAttrDiffapiImportapiImportValueapiIndexapiIndexAttrDiffapiQueryapiRecalculateCachesapiRemoveNodeapiResizeAbortapiSetCoordinatorapiShardNodesapiViews" @@ -10,7 +10,7 @@ var _apiMethod_index = [...]uint16{0, 17, 31, 45, 59, 73, 86, 98, 118, 135, 143, func (i apiMethod) String() string { if i < 0 || i >= apiMethod(len(_apiMethod_index)-1) { - return fmt.Sprintf("apiMethod(%d)", i) + return "apiMethod(" + strconv.FormatInt(int64(i), 10) + ")" } return _apiMethod_name[_apiMethod_index[i]:_apiMethod_index[i+1]] }