File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 2
2
CREATE TABLE ipni (
3
3
order_number BIGSERIAL PRIMARY KEY , -- Unique increasing order number
4
4
ad_cid TEXT NOT NULL ,
5
- context_id TEXT NOT NULL , -- abi.PieceInfo in Curio
5
+ context_id BYTEA NOT NULL , -- abi.PieceInfo in Curio
6
6
-- metadata column in not required as Curio only supports one type of metadata(HTTP)
7
7
is_rm BOOLEAN NOT NULL ,
8
8
@@ -39,7 +39,7 @@ CREATE TABLE ipni_head (
39
39
40
40
CREATE OR REPLACE FUNCTION insert_ad_and_update_head (
41
41
_ad_cid TEXT ,
42
- _context_id TEXT ,
42
+ _context_id BYTEA ,
43
43
_is_rm BOOLEAN ,
44
44
_provider TEXT ,
45
45
_addresses TEXT ,
@@ -71,7 +71,7 @@ CREATE OR REPLACE FUNCTION get_ad_chain(
71
71
_ad_cid TEXT
72
72
) RETURNS TABLE (
73
73
ad_cid TEXT ,
74
- context_id TEXT ,
74
+ context_id BYTEA ,
75
75
is_rm BOOLEAN ,
76
76
previous TEXT ,
77
77
provider TEXT ,
98
98
$$ LANGUAGE plpgsql;
99
99
100
100
-- IPNI pipeline is kept separate from rest for robustness
101
- -- and reuse. This allows for removing, recreating as using CLI.
101
+ -- and reuse. This allows for removing, recreating ads using CLI.
102
102
CREATE TABLE ipni_task (
103
103
sp_id BIGINT NOT NULL ,
104
104
sector BIGINT NOT NULL ,
Original file line number Diff line number Diff line change @@ -7,15 +7,14 @@ import (
7
7
"io"
8
8
"slices"
9
9
10
+ "github.com/filecoin-project/curio/market/ipni/ipniculib"
10
11
lru "github.com/hashicorp/golang-lru/v2"
11
12
logging "github.com/ipfs/go-log/v2"
12
13
"github.com/ipld/go-car/v2/index"
13
14
"github.com/ipld/go-ipld-prime"
14
15
"github.com/ipld/go-ipld-prime/datamodel"
15
16
"github.com/ipni/go-libipni/ingest/schema"
16
17
"github.com/multiformats/go-multihash"
17
-
18
- "github.com/filecoin-project/curio/lib/ipni/ipniculib"
19
18
)
20
19
21
20
var log = logging .Logger ("chunker" )
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import (
11
11
"strings"
12
12
"time"
13
13
14
+ "github.com/filecoin-project/curio/market/ipni/chunker"
15
+ "github.com/filecoin-project/curio/market/ipni/ipniculib"
14
16
"github.com/gorilla/mux"
15
17
lru "github.com/hashicorp/golang-lru/v2"
16
18
"github.com/ipfs/go-cid"
@@ -35,8 +37,6 @@ import (
35
37
36
38
"github.com/filecoin-project/curio/deps"
37
39
"github.com/filecoin-project/curio/harmony/harmonydb"
38
- "github.com/filecoin-project/curio/lib/ipni/chunker"
39
- "github.com/filecoin-project/curio/lib/ipni/ipniculib"
40
40
"github.com/filecoin-project/curio/lib/pieceprovider"
41
41
"github.com/filecoin-project/curio/lib/storiface"
42
42
"github.com/filecoin-project/curio/lib/urltomultiaddr"
File renamed without changes.
Original file line number Diff line number Diff line change @@ -27,12 +27,12 @@ import (
27
27
"github.com/filecoin-project/curio/harmony/harmonytask"
28
28
"github.com/filecoin-project/curio/harmony/resources"
29
29
"github.com/filecoin-project/curio/lib/ffi"
30
- "github.com/filecoin-project/curio/lib/ipni/chunker"
31
- "github.com/filecoin-project/curio/lib/ipni/ipniculib"
32
30
"github.com/filecoin-project/curio/lib/passcall"
33
31
"github.com/filecoin-project/curio/lib/pieceprovider"
34
32
"github.com/filecoin-project/curio/lib/storiface"
35
33
"github.com/filecoin-project/curio/market/indexstore"
34
+ "github.com/filecoin-project/curio/market/ipni/chunker"
35
+ "github.com/filecoin-project/curio/market/ipni/ipniculib"
36
36
)
37
37
38
38
var ilog = logging .Logger ("ipni" )
You can’t perform that action at this time.
0 commit comments