From b6ca2fc1fa1ce31d90b932f11babbbc8efa3384c Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Thu, 5 Oct 2023 17:20:15 +0200 Subject: [PATCH] fix staticcheck warnings --- gc.go | 3 ++- version.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gc.go b/gc.go index 7036b76..22a80fd 100644 --- a/gc.go +++ b/gc.go @@ -2,7 +2,8 @@ package main import "context" -// really stupid simple algorithm where we just delete things until weve deleted enough things +// GC is a really stupid simple algorithm where we just delete things until +// weve deleted enough things func (nd *Node) GC(ctx context.Context, todelete int64) error { keys, err := nd.blockstore.AllKeysChan(ctx) if err != nil { diff --git a/version.go b/version.go index ccda56b..b6dd3d7 100644 --- a/version.go +++ b/version.go @@ -7,7 +7,8 @@ import ( var name = "rainbow" var version = buildVersion() -var userAgent = name + "/" + version + +// var userAgent = name + "/" + version func buildVersion() string { var revision string