Skip to content

Commit

Permalink
chore(deps): 4-4 bump github.com/ViBiOh/httputils/v4 from 4.50.4 to 4…
Browse files Browse the repository at this point in the history
….50.5

Bumps [github.com/ViBiOh/httputils/v4](https://github.com/ViBiOh/httputils) from 4.50.4 to 4.50.5.
- [Release notes](https://github.com/ViBiOh/httputils/releases)
- [Commits](ViBiOh/httputils@v4.50.4...v4.50.5)

---
updated-dependencies:
- dependency-name: github.com/ViBiOh/httputils/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
dependabot[bot] authored and ViBiOh committed Dec 3, 2022
1 parent e2fd9c1 commit 447ec99
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/ViBiOh/auth/v2 v2.14.20
github.com/ViBiOh/flags v1.2.0
github.com/ViBiOh/httputils/v4 v4.50.4
github.com/ViBiOh/httputils/v4 v4.50.5
github.com/ViBiOh/mailer v1.30.18
github.com/golang/mock v1.6.0
github.com/jackc/pgconn v1.13.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ github.com/ViBiOh/auth/v2 v2.14.20 h1:xCTQrnTOFLiyFLIV0CMXlCPrHEbimganZsbTbdHUh5
github.com/ViBiOh/auth/v2 v2.14.20/go.mod h1:lL4rXpvS0Gtui4CSy0J/AK1pq59XVXaR4Qz1ELsQ3eY=
github.com/ViBiOh/flags v1.2.0 h1:DaujjNXzD29KxKyp4eZdn7c9+uBN5DokWgDAe7DcUmc=
github.com/ViBiOh/flags v1.2.0/go.mod h1:UyMB5zeD/aId7Xw3x7577ZNU298JmukzOcV8p/H2W1s=
github.com/ViBiOh/httputils/v4 v4.50.4 h1:hrwFSAyB7c8Sufdre5SyXpcBxMM7anBYeruhVomjjXk=
github.com/ViBiOh/httputils/v4 v4.50.4/go.mod h1:DB7a/VyQRn6SohUMbB87j2pUg6hfatM4+/cgTncnoVE=
github.com/ViBiOh/httputils/v4 v4.50.5 h1:2UC2cOsKjVy906ntHkFzgjsVo4Gd5CGaPigkmYI80Fw=
github.com/ViBiOh/httputils/v4 v4.50.5/go.mod h1:DB7a/VyQRn6SohUMbB87j2pUg6hfatM4+/cgTncnoVE=
github.com/ViBiOh/mailer v1.30.18 h1:56WqAM8RewgkCXYP+jtBnQKjdTobnkappxU7gIErV0E=
github.com/ViBiOh/mailer v1.30.18/go.mod h1:F4YM+ANIsVzXcYqjA3I6JfJCJqC9QB+jirML+XPg4RY=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
Expand Down
10 changes: 5 additions & 5 deletions pkg/notifier/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ func (a App) getKetchupToNotify(ctx context.Context, releases []model.Release) (
return userToNotify, nil
}

func releaseKey(r model.Release) string {
return fmt.Sprintf("%10d|%s", r.Repository.ID, r.Pattern)
func releaseKey(r model.Release) []byte {
return []byte(fmt.Sprintf("%10d|%s", r.Repository.ID, r.Pattern))
}

func ketchupKey(k model.Ketchup) string {
return fmt.Sprintf("%10d|%s", k.Repository.ID, k.Pattern)
func ketchupKey(k model.Ketchup) []byte {
return []byte(fmt.Sprintf("%10d|%s", k.Repository.ID, k.Pattern))
}

func (a App) syncReleasesByUser(ctx context.Context, releases []model.Release, ketchups []model.Ketchup) map[model.User][]model.Release {
Expand All @@ -178,7 +178,7 @@ func (a App) syncReleasesByUser(ctx context.Context, releases []model.Release, k

err := breaksync.NewSynchronization().
AddSources(
breaksync.NewSliceSource(releases, releaseKey, breaksync.NewRupture("release", breaksync.Identity)),
breaksync.NewSliceSource(releases, releaseKey, breaksync.NewRupture("release", breaksync.RuptureIdentity)),
breaksync.NewSliceSource(ketchups, ketchupKey, nil),
).
Run(func(synchronised uint64, items []any) error {
Expand Down

0 comments on commit 447ec99

Please sign in to comment.