|
@@ -32,10 +32,10 @@ export default class DevSync extends Command {
|
|
|
required: false,
|
|
|
description: 'Query node host and port (e.g.: some.com:8081)',
|
|
|
}),
|
|
|
- dataSourceOperatorHost: flags.string({
|
|
|
+ dataSourceOperatorUrl: flags.string({
|
|
|
char: 'o',
|
|
|
required: false,
|
|
|
- description: 'Storage node host and port (e.g.: some.com:8081) to get data from.',
|
|
|
+ description: 'Storage node url base (e.g.: http://some.com:8081) to get data from.',
|
|
|
}),
|
|
|
uploads: flags.string({
|
|
|
char: 'd',
|
|
@@ -52,8 +52,8 @@ export default class DevSync extends Command {
|
|
|
const queryNodeHost = flags.queryNodeHost ?? 'localhost:8081'
|
|
|
const queryNodeUrl = `http://${queryNodeHost}/graphql`
|
|
|
const syncWorkersNumber = flags.syncWorkersNumber ?? 20
|
|
|
- const dataSourceOperatorHost = flags.dataSourceOperatorHost ?? 'localhost:3333'
|
|
|
- const operatorUrl = `http://${dataSourceOperatorHost}/`
|
|
|
+ const dataSourceOperatorHost = flags.dataSourceOperatorUrl ?? 'http://localhost:3333'
|
|
|
+ const operatorUrl = `${dataSourceOperatorHost}`
|
|
|
|
|
|
try {
|
|
|
await performSync(flags.workerId, syncWorkersNumber, queryNodeUrl, flags.uploads, operatorUrl)
|