Commit 8365e13
authored
update
## 📝 Summary
fix unnecessary warning log `{message":{"fields":{"err":"Relay error:
Unknown relay response, status: 200 OK,
body: \"block received\"\n",...}}}`, previously the `block received`
response was being turned into a `RelayError::UnknownRelayError` since
the `trim()` function just removed whitespace but didn't remove the
quotes around `block received`. this now changes it to be `Ok(())`.
## 💡 Motivation and Context
<!--- (Optional) Why is this change required? What problem does it
solve? Remove this section if not applicable. -->
log clean up
---
## ✅ I have completed the following steps:
* [x] Run `make lint`
* [x] Run `make test`
* [x] Added tests (if applicable)map_response to parse json string response with quotes (#924)1 parent 4132e6d commit 8365e13
1 file changed
Lines changed: 39 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1057 | 1061 | | |
1058 | 1062 | | |
1059 | 1063 | | |
1060 | 1064 | | |
1061 | 1065 | | |
1062 | | - | |
| 1066 | + | |
1063 | 1067 | | |
1064 | 1068 | | |
1065 | 1069 | | |
1066 | 1070 | | |
1067 | 1071 | | |
1068 | | - | |
1069 | | - | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1070 | 1075 | | |
1071 | 1076 | | |
1072 | 1077 | | |
| |||
1390 | 1395 | | |
1391 | 1396 | | |
1392 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1393 | 1428 | | |
0 commit comments