Skip to content

Commit

Permalink
Appease the go fmt CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeler committed Dec 18, 2024
1 parent 167b9d0 commit 99ab416
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
15 changes: 7 additions & 8 deletions internal/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
//
// A sample retry operation looks like this:
//
// func TestX(t *testing.T) {
// retry.Run(t, func(r *retry.R) {
// if err := foo(); err != nil {
// r.Fatal("f: ", err)
// }
// })
// }
//
// func TestX(t *testing.T) {
// retry.Run(t, func(r *retry.R) {
// if err := foo(); err != nil {
// r.Fatal("f: ", err)
// }
// })
// }
package retry

import (
Expand Down
14 changes: 7 additions & 7 deletions queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ type Broadcast interface {
// You shoud ensure that Invalidates() checks the same uniqueness as the
// example below:
//
// func (b *foo) Invalidates(other Broadcast) bool {
// nb, ok := other.(NamedBroadcast)
// if !ok {
// return false
// }
// return b.Name() == nb.Name()
// }
// func (b *foo) Invalidates(other Broadcast) bool {
// nb, ok := other.(NamedBroadcast)
// if !ok {
// return false
// }
// return b.Name() == nb.Name()
// }
//
// Invalidates() isn't currently used for NamedBroadcasts, but that may change
// in the future.
Expand Down
6 changes: 2 additions & 4 deletions security.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ import (
)

/*
Encrypted messages are prefixed with an encryptionVersion byte
that is used for us to be able to properly encode/decode. We
currently support the following versions:
0 - AES-GCM 128, using PKCS7 padding
1 - AES-GCM 128, no padding. Padding not needed, caused bloat.
0 - AES-GCM 128, using PKCS7 padding
1 - AES-GCM 128, no padding. Padding not needed, caused bloat.
*/
type encryptionVersion uint8

Expand Down

0 comments on commit 99ab416

Please sign in to comment.