Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services: redis: add command data payloads #348

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

IllIlIlIlI
Copy link
Contributor

Fixes #329

@codecov-io
Copy link

codecov-io commented Jun 14, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@aa07200). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #348   +/-   ##
=========================================
  Coverage          ?   43.52%           
=========================================
  Files             ?       71           
  Lines             ?     8344           
  Branches          ?        0           
=========================================
  Hits              ?     3632           
  Misses            ?     4296           
  Partials          ?      416

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa07200...c1b95f3. Read the comment docs.

@@ -50,6 +51,8 @@ var (
_ = services.Register("redis", REDIS)
)

var p [][]byte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a shared buffer between all connections will cause issues.

@@ -50,6 +51,8 @@ var (
_ = services.Register("redis", REDIS)
)

var p [][]byte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a shared buffer between connections will cause issues

@@ -98,6 +101,7 @@ func (d *redisDatum) ToString() (value string, success bool) {
func parseRedisData(scanner *bufio.Scanner) (redisDatum, error) {
scanner.Scan()
cmd := scanner.Text()
p = append(p, []byte(cmd+"\r\n"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just append to []byte instead of [][]byte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants