From c31f0f8cbd92fd777e44ebfc7f2b388d4ead9a6e Mon Sep 17 00:00:00 2001 From: David de Boer Date: Tue, 28 May 2024 14:19:31 +0200 Subject: [PATCH] feat: Remove delay from examples --- README.md | 1 - src/lib/Iterator.class.ts | 4 ++-- static/example/config.yml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 248766d..962c867 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,6 @@ stages: iterator: query: "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 100" endpoint: "http://example.com/sparql-endpoint" - delay: "150 ms" generator: - query: "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }" batchSize: 50 diff --git a/src/lib/Iterator.class.ts b/src/lib/Iterator.class.ts index 1a15ff9..e6720d8 100644 --- a/src/lib/Iterator.class.ts +++ b/src/lib/Iterator.class.ts @@ -27,7 +27,7 @@ class Iterator extends EventEmitter { private readonly query: SelectQuery; public readonly endpoint: Endpoint; private readonly engine: QueryEngine; - private readonly delay: number | undefined; + private readonly delay: number = 0; private source = ''; private $offset = 0; public totalResults = 0; @@ -100,7 +100,7 @@ class Iterator extends EventEmitter { .catch(e => { this.emit('error', error(e)); }); - }, this.delay ?? 0); + }, this.delay); } } diff --git a/static/example/config.yml b/static/example/config.yml index 8100293..8ebcd07 100644 --- a/static/example/config.yml +++ b/static/example/config.yml @@ -14,7 +14,6 @@ stages: iterator: query: file://static/example/iterator-stage-1.rq endpoint: https://api.triplydb.com/datasets/Triply/iris/services/demo-service/sparql - delay: "50ms" generator: # First generator - query: file://static/example/generator-stage-1-1.rq