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

further tweaks to mtarget #111

Merged
merged 1 commit into from
Feb 14, 2018
Merged

further tweaks to mtarget #111

merged 1 commit into from
Feb 14, 2018

Conversation

nicpottier
Copy link
Collaborator

Allow sending unicode, deal with multiparts that come in separately.

}

// join our segments in our text
text = strings.Join(segments, "")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to join using a space

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, these are multipart messages, they aren't necessarily split on a space.

@nicpottier nicpottier merged commit b302c02 into master Feb 14, 2018
@nicpottier nicpottier removed the review label Feb 14, 2018
mapKey := fmt.Sprintf("%s:%s", c.UUID().String(), longID)
rc.Send("MULTI")
rc.Send("HSET", mapKey, longRef, text)
rc.Send("EXPIRE", mapKey, 300)
Copy link
Contributor

Choose a reason for hiding this comment

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

is 5min enough to wait all the parts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think so, we can tweak if not, but there shouldn't be that big a delay.

@norkans7 norkans7 deleted the mtarget-tweaks branch January 25, 2019 10:43
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

2 participants