Skip to content

Commit

Permalink
feat: Remove delay from examples (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored May 29, 2024
1 parent b9f8d61 commit 141f82d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Iterator.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -100,7 +100,7 @@ class Iterator extends EventEmitter {
.catch(e => {
this.emit('error', error(e));
});
}, this.delay ?? 0);
}, this.delay);
}
}

Expand Down
1 change: 0 additions & 1 deletion static/example/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 141f82d

Please sign in to comment.