From b4a5444a23f92ad3505e30ef83dcedd048b5682f Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Wed, 28 Oct 2020 12:12:04 -0700 Subject: [PATCH] Reduce size multiplier --- go.sum | 1 + indexer/indexer.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go.sum b/go.sum index a2d74d4..39f2496 100644 --- a/go.sum +++ b/go.sum @@ -277,6 +277,7 @@ github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljT github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/vmihailenco/msgpack/v5 v5.0.0-beta.8 h1:R2L6zPq1pWFumpeIxAJoeiov5GxyEZUq9NyS8eus/6s= github.com/vmihailenco/msgpack/v5 v5.0.0-beta.8/go.mod h1:HVxBVPUK/+fZMonk4bi1islLa8V3cfnBug0+4dykPzo= +github.com/vmihailenco/msgpack/v5 v5.0.0-beta.9 h1:iBRIniTnWOo0kqkg3k3XR8Vn6OCkVlIuZNo0UoBrKx4= github.com/vmihailenco/msgpack/v5 v5.0.0-beta.9/go.mod h1:HVxBVPUK/+fZMonk4bi1islLa8V3cfnBug0+4dykPzo= github.com/vmihailenco/tagparser v0.1.2 h1:gnjoVuB/kljJ5wICEEOpx98oXMWPLj22G67Vbd1qPqc= github.com/vmihailenco/tagparser v0.1.2/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI= diff --git a/indexer/indexer.go b/indexer/indexer.go index 67514cf..47a3649 100644 --- a/indexer/indexer.go +++ b/indexer/indexer.go @@ -52,7 +52,7 @@ const ( // estimate for pre-fetching blocks. In other words, // this is the estimated memory overhead for each // block fetched by the indexer. - sizeMultiplier = 15 + sizeMultiplier = 5 // zeroValue is 0 as a string zeroValue = "0"