-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Specify common types TDE-1030 #849
Changes from 5 commits
25f890c
243ceeb
a119ba7
907f18a
8f8c146
8d716c3
3fe4a21
9ca2b9e
aeeb40a
48f5b2d
cf7aad3
ab8603d
73e08c1
e0f9241
a5aa796
f341b8f
f4f916d
67a8bc0
1eeb1cc
804b355
86cfa0d
40581de
2cd22d5
c6dc92b
fa98b63
1f36e73
3b5eb17
dcd9868
f09b7d3
5306cc8
273235e
cc9ddb1
87c913f
894218c
1a26e94
767edc0
fc92748
ffd1d02
8191600
79737fc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ export interface CopyContractArgs { | |
/** Copy ID for tracing */ | ||
id: string; | ||
/** List of files that need to be copied */ | ||
manifest: { source: string; target: string }[]; | ||
manifest: { source: URL; target: URL }[]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can worker threads actually pass URLS? I thought everything was meant to be a POJO for passing around? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume you mean either JSON or JS object, not "Plain old Java object". I have no idea how There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I am not sure we can pass a URL between threads as its not really a easily searliazable thing, just like you cant pass a date but you can pass a ISO string. |
||
/** Offset into the manifest to start at */ | ||
start: number; | ||
/** Number of records to copy */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its not safe to use
.href
here. If its a file url it has to be converted withpath.fileURLToPath
.does
fsa.read
not accept a URL? would implyfsa
is out of date?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather upgrade fsa, but:
Yep; that PR needs a bunch of fixes, though.