Skip to content

Commit

Permalink
rename a helper func
Browse files Browse the repository at this point in the history
  • Loading branch information
utku-caglayan committed Dec 30, 2021
1 parent df8e738 commit 5fadb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_it_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func TestClientEventOrder(t *testing.T) {
})
}

func calcPartitionID(ss *serialization.Service, key interface{}) (int32, error) {
func calculatePartitionID(ss *serialization.Service, key interface{}) (int32, error) {
kd, err := ss.ToData(key)
if err != nil {
return 0, err
Expand Down Expand Up @@ -230,7 +230,7 @@ func TestClientEventHandlingOrder(t *testing.T) {
atomic.AddInt32(&count, 1)
// it is okay to use conversion, since greatest key is 1000
key := int(event.Key.(int64))
pid, err := calcPartitionID(ss, key)
pid, err := calculatePartitionID(ss, key)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 5fadb18

Please sign in to comment.