-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rollback get_keys with 3 keys (#200)
in current changes, get_keys will only return method 1 token/key and skip method 2 and default key. in previous design, we should return 3 token/keys, and try with all the possible token/key. use more token/key to retry always better than only check with one key. so we need to rollback it. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Ensured the `get_keys` functionality always updates with default keys, improving reliability of the feature. - **Tests** - Expanded test coverage to include additional scenarios for `get_keys`, ensuring better validation and reliability. - **Chores** - Updated JSON response files to align with new key naming conventions. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
4 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"code": 0, | ||
"data": { | ||
"tokenlist": [ | ||
{ | ||
"udpId": "b2dd199071d527a33c8239833a5bf5fb", | ||
"token": "method2_return_token2", | ||
"key": "method2_return_key2" | ||
} | ||
] | ||
} | ||
} |