Skip to content

Commit

Permalink
cmd, sia: pass in ipfs node
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Nov 19, 2023
1 parent f8e18e7 commit 01e4521
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/fsd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func main() {
}
defer inode.Close()

snode := sia.New(db, cfg.Renterd, log.Named("sia"))
snode := sia.New(db, inode, cfg.Renterd, log.Named("sia"))

apiListener, err := net.Listen("tcp", cfg.API.Address)
if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion sia/sia.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ func (n *Node) CalculateBlocks(ctx context.Context, r io.Reader) ([]Block, error
}

// New creates a new Sia IPFS store
func New(store Store, cfg config.Renterd, log *zap.Logger) *Node {
func New(store Store, ipfs IPFSProvider, cfg config.Renterd, log *zap.Logger) *Node {
return &Node{
store: store,
ipfs: ipfs,
log: log,

renterd: cfg,
Expand Down

0 comments on commit 01e4521

Please sign in to comment.