From c7b6bdcb034ad4447b572fc2d88a178d246b1d4c Mon Sep 17 00:00:00 2001 From: Erin Rivas Date: Wed, 1 Nov 2023 19:47:47 -0500 Subject: [PATCH] lints --- japicore/pathRouteHandling.go | 6 +++--- japicore/wallet.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/japicore/pathRouteHandling.go b/japicore/pathRouteHandling.go index 243350c..4f5cd44 100644 --- a/japicore/pathRouteHandling.go +++ b/japicore/pathRouteHandling.go @@ -235,10 +235,10 @@ func (j JApiCore) UploadMultiByPathHandler() bunrouter.HandlerFunc { return err } - go func(ch chan string, wg *sync.WaitGroup) { + go func(filename string, ch chan string, wg *sync.WaitGroup) { defer wg.Done() - ch <- processUpload(w, j.FileIo, byteBuffer.Bytes(), fh.Filename, operatingRoot, j.FileIoQueue) - }(fidChannel, &wg) + ch <- processUpload(w, j.FileIo, byteBuffer.Bytes(), filename, operatingRoot, j.FileIoQueue) + }(fh.Filename, fidChannel, &wg) } wg.Wait() close(fidChannel) diff --git a/japicore/wallet.go b/japicore/wallet.go index a45055c..b264a0f 100755 --- a/japicore/wallet.go +++ b/japicore/wallet.go @@ -27,7 +27,7 @@ func InitWalletSession() (*wallet_handler.WalletHandler, *file_io_handler.FileIo panic(err) } - //fileIo, err := file_io_handler.NewFileIoHandler(wallet.WithGas("250000")) + // fileIo, err := file_io_handler.NewFileIoHandler(wallet.WithGas("250000")) fileIo, err := file_io_handler.NewFileIoHandler(wallet) if err != nil { panic(err)