Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 4, 2024
1 parent 1cf31bc commit 11ca3d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestLoad(t *testing.T) {

t.Run("file", func(t *testing.T) {
path := filepath.Join(t.TempDir(), "foo.txt")
require.NoError(t, os.WriteFile(path, []byte(content), 0644))
require.NoError(t, os.WriteFile(path, []byte(content), 0o644))

msg, err := loadMsg("file://" + path)
require.NoError(t, err)
Expand Down
6 changes: 2 additions & 4 deletions shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ const (
defaultEmptyMessagesLimit uint = 300
)

var (
// ErrTooManyEmptyStreamMessages represents an error when a stream has sent too many empty messages.
ErrTooManyEmptyStreamMessages = errors.New("stream has sent too many empty messages")
)
// ErrTooManyEmptyStreamMessages represents an error when a stream has sent too many empty messages.
var ErrTooManyEmptyStreamMessages = errors.New("stream has sent too many empty messages")

// Marshaller is an interface for marshalling values to bytes.
type Marshaller interface {
Expand Down

0 comments on commit 11ca3d8

Please sign in to comment.