Skip to content

Commit

Permalink
Golint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emasab committed Jan 16, 2023
1 parent cd144c2 commit 74a6eeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kafka/mockcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func (mc *MockCluster) BootstrapServers() string {
}

// SetRoundtripDuration sets the broker round-trip-time delay for the given broker.
func (mc *MockCluster) SetRoundtripDuration(brokerId int, duration time.Duration) error {
func (mc *MockCluster) SetRoundtripDuration(brokerID int, duration time.Duration) error {
durationInMillis := C.int(duration.Milliseconds())
cError := C.rd_kafka_mock_broker_set_rtt(mc.mcluster, C.int(brokerId), durationInMillis)
cError := C.rd_kafka_mock_broker_set_rtt(mc.mcluster, C.int(brokerID), durationInMillis)
if cError != C.RD_KAFKA_RESP_ERR_NO_ERROR {
return newError(cError)
}
Expand Down
4 changes: 2 additions & 2 deletions schemaregistry/serde/avro/avro_generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

func testMessageFactoryGeneric(subject string, name string) (interface{}, error) {
if subject != "topic1-value" {
return nil, errors.New("Message factory only handles topic1.")
return nil, errors.New("message factory only handles topic1")
}

switch name {
Expand All @@ -39,7 +39,7 @@ func testMessageFactoryGeneric(subject string, name string) (interface{}, error)
return &GenericNestedTestRecord{}, nil
}

return nil, errors.New("Schema not found.")
return nil, errors.New("schema not found")
}

func TestGenericAvroSerdeWithSimple(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions schemaregistry/serde/avro/avro_specific_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (

func testMessageFactorySpecific(subject string, name string) (interface{}, error) {
if subject != "topic1-value" {
return nil, errors.New("Message factory only handles topic1.")
return nil, errors.New("message factory only handles topic1")
}

switch name {
Expand All @@ -39,7 +39,7 @@ func testMessageFactorySpecific(subject string, name string) (interface{}, error
return &test.RecursiveUnionTestRecord{}, nil
}

return nil, errors.New("Schema not found.")
return nil, errors.New("schema not found")
}

func TestSpecificAvroSerdeWithSimple(t *testing.T) {
Expand Down

0 comments on commit 74a6eeb

Please sign in to comment.