From 4a77fdac4c9d58b5a49f1c6f2ffb3522691a14fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 27 Nov 2019 13:12:42 +0100 Subject: [PATCH] bench: Fix after filecoin-ffi switch --- cmd/lotus-bench/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-bench/main.go b/cmd/lotus-bench/main.go index da4ecf8f0..a4ed62fd1 100644 --- a/cmd/lotus-bench/main.go +++ b/cmd/lotus-bench/main.go @@ -9,6 +9,7 @@ import ( "path/filepath" "time" + ffi "github.com/filecoin-project/filecoin-ffi" "github.com/ipfs/go-datastore" logging "github.com/ipfs/go-log" "github.com/mitchellh/go-homedir" @@ -108,7 +109,7 @@ func main() { size := sectorbuilder.UserBytesForSectorSize(c.Uint64("sector-size")) var sealTimings []SealingResult - var sealedSectors []sectorbuilder.PublicSectorInfo + var sealedSectors []ffi.PublicSectorInfo numSectors := uint64(1) for i := uint64(1); i <= numSectors; i++ { start := time.Now() @@ -134,7 +135,7 @@ func main() { precommit := time.Now() - sealedSectors = append(sealedSectors, sectorbuilder.PublicSectorInfo{ + sealedSectors = append(sealedSectors, ffi.PublicSectorInfo{ CommR: pco.CommR, SectorID: i, })