Skip to content

Commit fc052a4

Browse files
authored
#179 Prepare for versioned release (#205)
* #179 Prepare for versioned release * #179 Prepare for versioned release * #179 Prepare for versioned release * #179 Prepare for versioned release * #179 Prepare for versioned release
1 parent a81570e commit fc052a4

File tree

12 files changed

+29
-18
lines changed

12 files changed

+29
-18
lines changed

.github/workflows/go-test-darwin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ jobs:
5151
name: coverage
5252
needs: go-test-darwin
5353
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
54+
with:
55+
coverage-config: ./.github/coverage/testcoverage.yaml

.github/workflows/go-test-linux.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ jobs:
5151
name: coverage
5252
needs: go-test-linux
5353
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
54+
with:
55+
coverage-config: ./.github/coverage/testcoverage.yaml

.github/workflows/go-test-windows.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ jobs:
5353
name: coverage
5454
needs: go-test-windows
5555
uses: senzing-factory/build-resources/.github/workflows/go-coverage.yaml@v2
56+
with:
57+
coverage-config: ./.github/coverage/testcoverage.yaml

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
-
1212

13+
## [0.3.3] - 2024-07-02
14+
15+
### Changed in 0.3.3
16+
17+
- Fixed import issue
18+
1319
## [0.3.2] - 2024-07-01
1420

1521
### Changed in 0.3.2

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ The Senzing `go-queueing` packages provide adapters for RabbitMQ, and SQS.
2626
[![Go Report Card](https://goreportcard.com/badge/github.com/senzing-garage/go-queueing)](https://goreportcard.com/report/github.com/senzing-garage/go-queueing)
2727
[![License](https://img.shields.io/badge/License-Apache2-brightgreen.svg)](https://github.com/senzing-garage/go-queueing/blob/main/LICENSE)
2828

29-
[![gosec.yaml](https://github.com/senzing-garage/go-queueing/actions/workflows/gosec.yaml/badge.svg)](https://github.com/senzing-garage/go-queueing/actions/workflows/gosec.yaml)
3029
[![go-test-linux.yaml](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-linux.yaml/badge.svg)](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-linux.yaml)
3130
[![go-test-darwin.yaml](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-darwin.yaml/badge.svg)](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-darwin.yaml)
3231
[![go-test-windows.yaml](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-windows.yaml/badge.svg)](https://github.com/senzing-garage/go-queueing/actions/workflows/go-test-windows.yaml)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/roncewind/go-util v0.0.5
1111
github.com/senzing-garage/go-helpers v0.5.2
1212
github.com/senzing-garage/go-logging v1.5.0
13-
github.com/senzing-garage/sz-sdk-go v0.12.4
13+
github.com/senzing-garage/sz-sdk-go v0.13.5
1414
github.com/sourcegraph/conc v0.3.0
1515
)
1616

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ github.com/senzing-garage/go-logging v1.5.0 h1:Qf7u2l+fP1SYl8dVElflhn4n7Kdl3KemS
4040
github.com/senzing-garage/go-logging v1.5.0/go.mod h1:oJvDi8BwljDAE1RRlGWk3glgq3czTaIZyL+TnpaTUAE=
4141
github.com/senzing-garage/go-messaging v1.5.1 h1:rvBP06mURgUQV8xNRKZ1V1pkMLbXizdjak16TE6/zQg=
4242
github.com/senzing-garage/go-messaging v1.5.1/go.mod h1:W93FrFoYrJWQ1302jgY8U5ylSA0whAOCLo1x1ESbVX4=
43-
github.com/senzing-garage/sz-sdk-go v0.12.4 h1:JbKhdn5PqXNMzFiuz92zBFL5/xChBFgOJmyqrKqp3gg=
44-
github.com/senzing-garage/sz-sdk-go v0.12.4/go.mod h1:pr9d622FPNGFPgAFooCcUWNeh+AEyVDkvR3Fmsp6whg=
43+
github.com/senzing-garage/sz-sdk-go v0.13.5 h1:7JvU13ofse+5bwdr/Ud0CGS33Z9ybVXFd2akpAFc1L4=
44+
github.com/senzing-garage/sz-sdk-go v0.13.5/go.mod h1:pr9d622FPNGFPgAFooCcUWNeh+AEyVDkvR3Fmsp6whg=
4545
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
4646
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
4747
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=

queues/rabbitmq/managedConsumer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
amqp "github.com/rabbitmq/amqp091-go"
99
"github.com/senzing-garage/go-helpers/record"
10-
"github.com/senzing-garage/sz-sdk-go/sz"
10+
"github.com/senzing-garage/sz-sdk-go/senzing"
1111
"github.com/sourcegraph/conc/pool"
1212
)
1313

@@ -20,7 +20,7 @@ var jobPool chan *RabbitConsumerJob
2020
// define a structure that will implement the Job interface
2121
type RabbitConsumerJob struct {
2222
delivery amqp.Delivery
23-
engine *sz.SzEngine
23+
engine *senzing.SzEngine
2424
id int
2525
usedCount int
2626
withInfo bool
@@ -39,9 +39,9 @@ func (j *RabbitConsumerJob) Execute(ctx context.Context) error {
3939
// fmt.Printf("Received a message- msgId: %s, msgCnt: %d, ConsumerTag: %s\n", id, j.delivery.MessageCount, j.delivery.ConsumerTag)
4040
record, newRecordErr := record.NewRecord(string(j.delivery.Body))
4141
if newRecordErr == nil {
42-
flags := sz.SZ_WITHOUT_INFO
42+
flags := senzing.SzWithoutInfo
4343
if j.withInfo {
44-
flags = sz.SZ_WITH_INFO
44+
flags = senzing.SzWithInfo
4545
}
4646
result, err := (*j.engine).AddRecord(ctx, record.DataSource, record.ID, record.JSON, flags)
4747
if err != nil {
@@ -78,7 +78,7 @@ func (j *RabbitConsumerJob) OnError(err error) {
7878
// them to Senzing.
7979
// - Workers restart when they are killed or die.
8080
// - respond to standard system signals.
81-
func StartManagedConsumer(ctx context.Context, urlString string, numberOfWorkers int, szEngine *sz.SzEngine, withInfo bool, logLevel string, jsonOutput bool) error {
81+
func StartManagedConsumer(ctx context.Context, urlString string, numberOfWorkers int, szEngine *senzing.SzEngine, withInfo bool, logLevel string, jsonOutput bool) error {
8282
_ = jsonOutput
8383

8484
// default to the max number of OS threads

queues/rabbitmq/managedConsumer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/senzing-garage/sz-sdk-go/sz"
7+
"github.com/senzing-garage/sz-sdk-go/senzing"
88
)
99

1010
func TestRabbitConsumerJob_Execute(test *testing.T) {
@@ -52,7 +52,7 @@ func TestStartManagedConsumer(test *testing.T) {
5252
ctx context.Context
5353
urlString string
5454
numberOfWorkers int
55-
szEngine *sz.SzEngine
55+
szEngine *senzing.SzEngine
5656
withInfo bool
5757
logLevel string
5858
jsonOutput bool

0 commit comments

Comments
 (0)