From 560868ab75a6c2df97582360b9748a4aa395a7a6 Mon Sep 17 00:00:00 2001 From: Seednode Date: Fri, 5 Jan 2024 21:48:40 -0600 Subject: [PATCH] Remove import alias for pierrec/lz4 --- cmd/index.go | 3 +-- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/index.go b/cmd/index.go index 93c4af0..4f4e006 100644 --- a/cmd/index.go +++ b/cmd/index.go @@ -20,7 +20,7 @@ import ( "github.com/golang/snappy" "github.com/julienschmidt/httprouter" "github.com/klauspost/compress/zstd" - lz4 "github.com/pierrec/lz4/v4" + "github.com/pierrec/lz4/v4" "seedno.de/seednode/roulette/types" ) @@ -236,7 +236,6 @@ func (index *fileIndex) Import(path string) error { if err != nil { return err } - //defer reader.Close() dec := gob.NewDecoder(reader) diff --git a/cmd/root.go b/cmd/root.go index 9ed1ac6..350f80e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -15,7 +15,7 @@ import ( const ( AllowedCharacters string = `^[A-z0-9.\-_]+$` - ReleaseVersion string = "3.12.0" + ReleaseVersion string = "3.12.1" ) var (