Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Streams api#1000#1039

Merged
mijicd merged 19 commits intozio:mainfromhcwilhelm:Streams_API#1000
Feb 21, 2025
Merged

Streams api#1000#1039

mijicd merged 19 commits intozio:mainfromhcwilhelm:Streams_API#1000
Feb 21, 2025

Conversation

hcwilhelm
Copy link
Contributor

PR to Fix Extend Streams API#1000

  • XAUTOCLAIM was not missing, so no action is needed here.
  • XSETID is, according to the Redis docs, an internal command. So I am not sure if we need it in the streams API.

@hcwilhelmhcwilhelm requested a review froma team as acode ownerFebruary 18, 2025 08:14
@hcwilhelm
Copy link
ContributorAuthor

@guizmaii@mijicd Sorry guys, I completely messed up my other PR when trying to rewrite the commits to have the correct email address. So I needed to close that PR and create this new one. 😓

guizmaii and mijicd reacted with thumbs up emoji

Copy link
Member

@mijicdmijicd left a comment

Choose a reason for hiding this comment

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

Few minor remarks, otherwise LGTM

import zio.redis.internal.{RedisCommand, RedisEnvironment}
import zio.redis.{Input, _}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
importzio.redis.{Input,_}
importzio.redis._

Comment on lines 441 to 447
sealed trait CappedStreamLiterals {
val maxLenLiteral: RespCommandArgument.Literal = RespCommandArgument.Literal("MAXLEN")
val minIdLiteral: RespCommandArgument.Literal = RespCommandArgument.Literal("MINID")
val approxLiteral: RespCommandArgument.Literal = RespCommandArgument.Literal("~")
val exactLiteral: RespCommandArgument.Literal = RespCommandArgument.Literal("=")
val limitLiteral: RespCommandArgument.Literal = RespCommandArgument.Literal("LIMIT")
}
Copy link
Member

Choose a reason for hiding this comment

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

Two things:

  • CappedStreamLiterals should probably be private (perhaps even removed)
  • if removed, I'd follow the constant naming/definition scheme, e.g.private final val MaxLenLiteral

}

case object MaxLenApproxInput extends Input[CappedStreamType.MaxLenApprox] with CappedStreamLiterals {
override private[redis] def encode(data: CappedStreamType.MaxLenApprox): RespCommand = {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: let's ditch theoverride private[redis] everywhere.

@hcwilhelm
Copy link
ContributorAuthor

@mijicd Ok, I addressed your comments ;)

@mijicdmijicd mentioned this pull requestFeb 21, 2025
12 tasks
Copy link
Member

@mijicdmijicd left a comment

Choose a reason for hiding this comment

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

Sorry for another nitpick, I missed it in the first pass.

@mijicdmijicdenabled auto-merge (squash)February 21, 2025 13:19
@mijicdmijicd merged commitb953440 intozio:mainFeb 21, 2025
12 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mijicdmijicdmijicd approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@hcwilhelm@mijicd

[8]ページ先頭

©2009-2025 Movatter.jp