mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-21 00:56:29 +00:00
Implement limit for Rust
This commit is contained in:
@ -83,7 +83,7 @@ class RequestJSONEventsHandler extends JSONHandler {
|
||||
|
||||
setString(name: string, value: string): void {
|
||||
this.offset = 0;
|
||||
this.count = 0;
|
||||
this.count = 100;
|
||||
|
||||
if (name == "action") {
|
||||
this.action = value;
|
||||
|
@ -83,7 +83,7 @@ class RequestJSONEventsHandler extends JSONHandler {
|
||||
|
||||
setString(name: string, value: string): void {
|
||||
this.offset = 0;
|
||||
this.count = 0;
|
||||
this.count = 100;
|
||||
|
||||
if (name == "action") {
|
||||
this.action = value;
|
||||
|
@ -65,7 +65,7 @@ echo "$RESPONSE" | jq . 2>/dev/null || echo "$RESPONSE"
|
||||
|
||||
# Assign json to a variable using heredoc technique
|
||||
JSON=$(cat <<JSON
|
||||
{"action":"Fetch", "handle": "random_joe", "offset": 0, "limit": 10}
|
||||
{"action":"Fetch", "handle": "random_joe", "offset": 0, "count": 10}
|
||||
JSON
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user