Skip to content

Commit

Permalink
Merge pull request #5 from graphprotocol/rotarur/fix-sync
Browse files Browse the repository at this point in the history
fixed sync pin ls endpoint
  • Loading branch information
rotarur authored Oct 16, 2023
2 parents a1b0018 + cdd497c commit e4e9ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func Sync(cmd *cobra.Command) {
log.Printf("Syncing from %s to %s\n", src, dst)

// Create the API URL for the IPFS pin/ls operation
listURL := fmt.Sprintf("%s%s", src, utils.DIR_LIST_ENDPOINT)
listURL := fmt.Sprintf("%s%s", src, utils.PIN_LIST_ENDPOINT)

// Get the list of all CID's from the source IPFS
// TODO: implement retry backoff with pester
Expand Down
1 change: 1 addition & 0 deletions internal/utils/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import "net/http"

var DIR_LIST_ENDPOINT string = "/ipfs/api/v0/ls?arg="
var PIN_LIST_ENDPOINT string = "/ipfs/api/v0/pin/ls"
var CAT_ENDPOINT string = "/ipfs/api/v0/cat?arg="
var IPFS_PIN_ENDPOINT string = "/ipfs/api/v0/add"
var HEADER_APP_JSON string = "application/json"
Expand Down

0 comments on commit e4e9ac8

Please sign in to comment.