forked from containers/aardvark-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend: return simple Vector in lookup()
There is no use of the enum, the caller just checks if it gets ips or not so we can make this much simpler. Now there are a lot of unit test using this so I had to fix them. While fixing I decided it woul dbe a godd idea to also change the format they are written as this all seems super complicated for no reason there. We can direclty check the vector in assert_eq!() and do not need the complicated destructuring. And just use expect() directly over matching error just to panic anyway. Also parsing the same ips over and over doesn't look nice either. Signed-off-by: Paul Holzinger <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
201 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
Oops, something went wrong.