Skip to content

Commit

Permalink
chore: fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
eaddingtonwhite committed Sep 30, 2024
1 parent 85a241b commit 2f0c284
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion caching/caching_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func TestBatchGetItemAllHits(t *testing.T) {
if err != nil {
t.Errorf("error serializing movie 1 map: %+v", err)
}
item2ToCache, err := ddbSerializer.Serialize(movie1Map)
item2ToCache, err := ddbSerializer.Serialize(movie2Map)
if err != nil {
t.Errorf("error serializing movie 2 map: %+v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions internal/serializer/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func BenchmarkSerialization(b *testing.B) {

for _, serializer := range serializers {
for _, payload := range testPayloads {
b.Run(serializer.name+"Marshal/"+payload.name, func(b *testing.B) {
b.Run(serializer.name+"Serialize/"+payload.name, func(b *testing.B) {
for i := 0; i < b.N; i++ {
_, err := serializer.serializer.Serialize(payload.item)
if err != nil {
Expand All @@ -44,7 +44,7 @@ func BenchmarkSerialization(b *testing.B) {
}
})

b.Run(serializer.name+"Unmarshal/"+payload.name, func(b *testing.B) {
b.Run(serializer.name+"Deserialize/"+payload.name, func(b *testing.B) {
data, err := serializer.serializer.Serialize(payload.item)
if err != nil {
b.Error(err)
Expand Down
1 change: 1 addition & 0 deletions internal/serializer/serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"

"github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue"
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
"github.com/vmihailenco/msgpack/v5"
Expand Down

0 comments on commit 2f0c284

Please sign in to comment.