Skip to content

Commit

Permalink
update script comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eparker-tulip committed Jan 22, 2025
1 parent 4bbb688 commit c411cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redispub/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type PublishOpts struct {

// This script checks whether KEYS[1] is set. If it is, it does nothing. It not,
// it sets the key, using ARGV[1] as the expiration, and then publishes the
// message ARGV[2] to channels ARGV[3] and ARGV[4]. Returns true if published.
// message ARGV[2] to channels ARGV[3] and ARGV[4]. Returns 2 if published.
var publishDedupe = redis.NewScript(`
local res = 1
if redis.call("GET", KEYS[1]) == false then
Expand Down

0 comments on commit c411cb3

Please sign in to comment.