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

Commit

Permalink
feat(node): update for latest fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Apr 10, 2021
1 parent ca57b3c commit 04116ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module github.com/ipfs/interface-go-ipfs-core

require (
github.com/ipfs/go-cid v0.0.7
github.com/ipfs/go-dagwriter v0.0.0-20210330014411-6fb9a511eaff
github.com/ipfs/go-fetcher v1.2.0
github.com/ipfs/go-dagwriter v0.0.0-20210410024744-41183870fd1b
github.com/ipfs/go-fetcher v1.2.1-0.20210410025415-5325cff258c0
github.com/ipfs/go-ipfs-files v0.0.8
github.com/ipfs/go-ipld-cbor v0.0.4
github.com/ipfs/go-ipld-format v0.2.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ github.com/ipfs/go-cid v0.0.7 h1:ysQJVJA3fNDF1qigJbsSQOdjhVLsOEoPdh0+R97k3jY=
github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I=
github.com/ipfs/go-dagwriter v0.0.0-20210330014411-6fb9a511eaff h1:6Qk1I0swNwONRzL7xiivsNT3tqpaMW+C0dTPg6haYkc=
github.com/ipfs/go-dagwriter v0.0.0-20210330014411-6fb9a511eaff/go.mod h1:rytn1TKuQ3zg9oMJxoVsSUt7BXonIRWxChvDR6LkG98=
github.com/ipfs/go-dagwriter v0.0.0-20210410024744-41183870fd1b h1:iGEokY1rwqatEY6XxWQ/4fzGrdmOpvSM9YrudFMg8ww=
github.com/ipfs/go-dagwriter v0.0.0-20210410024744-41183870fd1b/go.mod h1:rytn1TKuQ3zg9oMJxoVsSUt7BXonIRWxChvDR6LkG98=
github.com/ipfs/go-datastore v0.0.1 h1:AW/KZCScnBWlSb5JbnEnLKFWXL224LBEh/9KXXOrUms=
github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE=
github.com/ipfs/go-datastore v0.0.5 h1:q3OfiOZV5rlsK1H5V8benjeUApRfMGs4Mrhmr6NriQo=
Expand All @@ -186,6 +188,8 @@ github.com/ipfs/go-ds-leveldb v0.4.1/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1
github.com/ipfs/go-ds-leveldb v0.4.2/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s=
github.com/ipfs/go-fetcher v1.2.0 h1:2eRF8JQCkCwsXn8c0VmGrl9ksCLG1Ll36WSId7Ld30Q=
github.com/ipfs/go-fetcher v1.2.0/go.mod h1:RFvn2LiuWIfyXt3ChONqIvQfsbEhBYWhwUeatYjFPIA=
github.com/ipfs/go-fetcher v1.2.1-0.20210410025415-5325cff258c0 h1:37yQd+iMV4xe0wZInKqbO76Lgbbtb7jrt3au6T8X4c0=
github.com/ipfs/go-fetcher v1.2.1-0.20210410025415-5325cff258c0/go.mod h1:mlpkadjgVO4a/SW822rtK2b7vIAjtvtw/f6ensvCImI=
github.com/ipfs/go-ipfs-blockstore v0.0.1 h1:O9n3PbmTYZoNhkgkEyrXTznbmktIXif62xLX+8dPHzc=
github.com/ipfs/go-ipfs-blockstore v0.0.1/go.mod h1:d3WClOmRQKFnJ0Jz/jj/zmksX0ma1gROTlovZKBmN08=
github.com/ipfs/go-ipfs-blockstore v0.1.0 h1:V1GZorHFUIB6YgTJQdq7mcaIpUfCM3fCyVi+MTo9O88=
Expand Down
6 changes: 2 additions & 4 deletions node.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package iface

import (
"context"

"github.com/ipfs/go-dagwriter"
"github.com/ipfs/go-fetcher"
)
Expand All @@ -11,8 +9,8 @@ import (
// through go-ipld-prime. It is a combination of DagWritingService (for writes)
// and Fetcher (for reads)
type NodeAPI interface {
// NewSession returns an instance of the Fetcher
NewSession(ctx context.Context) fetcher.Fetcher
// fetcher.Factory provides the interface to get new dag fetchers
fetcher.Factory

// DagWritingService implements methods to write dags
dagwriter.DagWritingService
Expand Down

0 comments on commit 04116ea

Please sign in to comment.