From a22dafaacc6e6af558c8df60d7f3173ddbac3ed2 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Mon, 10 Feb 2020 16:44:09 -0800 Subject: [PATCH] address linter --- storagemarket/impl/provider.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storagemarket/impl/provider.go b/storagemarket/impl/provider.go index 6e4d0b40..b1ef54ab 100644 --- a/storagemarket/impl/provider.go +++ b/storagemarket/impl/provider.go @@ -5,7 +5,6 @@ import ( "context" "errors" "io" - "os" "sync" "github.com/ipfs/go-cid" @@ -314,7 +313,7 @@ func (p *Provider) ImportDataForDeal(ctx context.Context, propCid cid.Cid, data } _ = n // TODO: verify n? - _, err = tempfi.Seek(0, os.SEEK_SET) + _, err = tempfi.Seek(0, io.SeekStart) if err != nil { return xerrors.Errorf("failed to seek through temp imported file: %w", err) }