mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fix timeouts
This commit is contained in:
parent
49b61b5590
commit
cee861cffd
@ -477,7 +477,8 @@ export class OceanAssets extends Instantiable {
|
|||||||
public async createAccessServiceAttributes(
|
public async createAccessServiceAttributes(
|
||||||
consumerAccount: Account,
|
consumerAccount: Account,
|
||||||
price: string,
|
price: string,
|
||||||
datePublished: string
|
datePublished: string,
|
||||||
|
timeout: number = 0
|
||||||
): Promise<ServiceAccess> {
|
): Promise<ServiceAccess> {
|
||||||
const { templates } = this.ocean.keeper
|
const { templates } = this.ocean.keeper
|
||||||
const serviceAgreementTemplate = await templates.escrowAccessSecretStoreTemplate.getServiceAgreementTemplate()
|
const serviceAgreementTemplate = await templates.escrowAccessSecretStoreTemplate.getServiceAgreementTemplate()
|
||||||
|
@ -266,7 +266,8 @@ export class OceanCompute extends Instantiable {
|
|||||||
public async createComputeServiceAttributes(
|
public async createComputeServiceAttributes(
|
||||||
consumerAccount: Account,
|
consumerAccount: Account,
|
||||||
price: string,
|
price: string,
|
||||||
datePublished: string
|
datePublished: string,
|
||||||
|
timeout: number = 3600
|
||||||
): Promise<ServiceCompute> {
|
): Promise<ServiceCompute> {
|
||||||
const { templates } = this.ocean.keeper
|
const { templates } = this.ocean.keeper
|
||||||
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
||||||
@ -281,7 +282,7 @@ export class OceanCompute extends Instantiable {
|
|||||||
creator: consumerAccount.getId(),
|
creator: consumerAccount.getId(),
|
||||||
datePublished,
|
datePublished,
|
||||||
price,
|
price,
|
||||||
timeout: 3600,
|
timeout: timeout,
|
||||||
name
|
name
|
||||||
},
|
},
|
||||||
serviceAgreementTemplate
|
serviceAgreementTemplate
|
||||||
|
Loading…
Reference in New Issue
Block a user