Skip to content

Commit

Permalink
lock aabi to 7.19 and update examples (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: AsterNighT <[email protected]>
  • Loading branch information
AsterNighT authored Mar 25, 2021
1 parent 62043db commit a866988
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
structopt = "0.3"
nix = "0.18"
anyhow = "1.0"
fuser = {version = "0.6", features = ["abi-7-31"]}
fuser = {version = "0.6", features = ["abi-7-19"]}
time = "0.1"
libc = "0.2"
async-trait = "0.1"
Expand Down
23 changes: 15 additions & 8 deletions config-examples/latency-example.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
[
{
"type": "latency",
"path": "/var/run/test/**/*",
"percent": 100,
"latency": "10ms"
}
]
{
"jsonrpc": "2.0",
"method": "update",
"params": [
[
{
"type": "latency",
"path": "/var/test/**/*",
"percent": 100,
"latency": "10ms"
}
]
],
"id": 1
}
35 changes: 22 additions & 13 deletions config-examples/mistake-example.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
[
{
"type": "mistake",
"path": "/tmp/test/test.txt",
"methods":["READ","WRITE"],
"mistake":
{
"jsonrpc": "2.0",
"method": "update",
"params": [
[
{
"filling":"zero",
"maxOccurrences":1,
"maxLength":10
},
"percent":100
}
]
"type": "mistake",
"path": "/var/test/**/*",
"methods": [
"READ",
"WRITE"
],
"mistake": {
"filling": "zero",
"maxOccurrences": 1,
"maxLength": 10000
},
"percent": 100
}
]
],
"id": 1
}

0 comments on commit a866988

Please sign in to comment.