vulsio / go-exploitdb

Tool for searching Exploits from Exploit Databases, etc.
MIT License
249 stars 56 forks source link

refactor(db): return error and use pipeline in Redis GetMulti #63

Closed MaineK00n closed 3 years ago

MaineK00n commented 3 years ago

What did you implement:

Changed to return error for functions related to Get. Also, GetMulti in Redis uses a pipeline to search efficiently.

Type of change

How Has This Been Tested?

$ patch -p1 < test.patch
$ make clean-integration && make build-integration
$ make fetch-rdb && make fetch-redis
$ make diff-server-rdb && make diff-server-redis && maek diff-server-rdb-redis


# Checklist:
You don't have to satisfy all of the following.

- [ ] Write tests
- [ ] Write documentation
- [x] Check that there aren't other open pull requests for the same issue/feature
- [x] Format your source code by `make fmt`
- [x] Pass the test by `make test`
- [x] Provide verification config / commands
- [x] Enable "Allow edits from maintainers" for this PR
- [x] Update the messages below

***Is this ready for review?:*** YES

# Reference