Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
Feat/support oss storage (#149)
Browse files Browse the repository at this point in the history
* use oss storage

* fix reference
  • Loading branch information
hunjixin authored and ta0li committed Feb 25, 2022
1 parent c3b9ab1 commit 5129c1f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion storage-sealing/deals.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

types2 "github.com/filecoin-project/venus-market/types"

"github.com/filecoin-project/venus-sealer/types"
)

Expand Down
2 changes: 2 additions & 0 deletions storage-sealing/sealing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package sealing
import (
"context"
"errors"
types3 "github.com/filecoin-project/venus-market/types"
"sync"
"time"

Expand Down Expand Up @@ -34,6 +35,7 @@ import (

"github.com/filecoin-project/venus-market/piecestorage"
types3 "github.com/filecoin-project/venus-market/types"
"github.com/filecoin-project/venus-market/piecestorage"
)

var log = logging.Logger("sectors")
Expand Down
8 changes: 3 additions & 5 deletions storage/adapter_storage_miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package storage
import (
"bytes"
"context"

"github.com/ipfs/go-cid"
cbg "github.com/whyrusleeping/cbor-gen"
"golang.org/x/xerrors"
Expand All @@ -25,9 +26,6 @@ import (
"github.com/filecoin-project/venus/pkg/types/specactors/builtin/market"
"github.com/filecoin-project/venus/pkg/types/specactors/builtin/miner"

api4 "github.com/filecoin-project/venus-market/api"
types4 "github.com/filecoin-project/venus-market/types"

"github.com/filecoin-project/venus-sealer/api"
"github.com/filecoin-project/venus-sealer/constants"
sealing "github.com/filecoin-project/venus-sealer/storage-sealing"
Expand All @@ -41,10 +39,10 @@ var _ sealing.SealingAPI = new(SealingAPIAdapter)
type SealingAPIAdapter struct {
delegate fullNodeFilteredAPI
messager api.IMessager
marketAPI api4.MarketFullNode
marketAPI api2.MarketFullNode
}

func NewSealingAPIAdapter(api fullNodeFilteredAPI, messager api.IMessager, marketAPI api4.MarketFullNode) SealingAPIAdapter {
func NewSealingAPIAdapter(api fullNodeFilteredAPI, messager api.IMessager, marketAPI api2.MarketFullNode) SealingAPIAdapter {
return SealingAPIAdapter{delegate: api, messager: messager, marketAPI: marketAPI}
}

Expand Down

0 comments on commit 5129c1f

Please sign in to comment.