Skip to content

Commit

Permalink
fix: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
panlei-coder committed Mar 29, 2024
1 parent bc755d1 commit 733eaa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd_zset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ void ZIncrbyCmd::DoCmd(PClient* client) {
}

ZRemrangebyscoreCmd::ZRemrangebyscoreCmd(const std::string& name, int16_t arity)
: BaseCmd(name, arity, kCmdFlagsWrite, kAclCategoryWrite | kAclCategorySortedSet) {}
: BaseCmd(name, arity, kCmdFlagsWrite, kAclCategoryWrite | kAclCategorySortedSet) {}

bool ZRemrangebyscoreCmd::DoInitial(PClient* client) {
client->SetKey(client->argv_[1]);
Expand Down
2 changes: 1 addition & 1 deletion tests/zset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ var _ = Describe("Zset", Ordered, func() {
rem, err := client.ZIncrBy(ctx, "zincrby", 5, "one").Result()
Expect(err).NotTo(HaveOccurred())
Expect(rem).To(Equal(float64(6)))
})
})

It("should ZRemRangeByScore", func() {
err := client.ZAdd(ctx, "zset", redis.Z{Score: 1, Member: "one"}).Err()
Expand Down

0 comments on commit 733eaa8

Please sign in to comment.