Skip to content

Commit 34c53f1

Browse files
authored
329 dockter 1 (#330)
* #329 Update dependencies * #329 Refactor to template * #329 Prepare for versioned release
1 parent ad5899d commit 34c53f1

15 files changed

+66
-44
lines changed

.github/linters/.golangci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ linters:
1616
- bidichk
1717
- bodyclose
1818
- contextcheck
19+
- copyloopvar
1920
- durationcheck
2021
- errcheck
2122
- errchkjson
2223
- errorlint
2324
- exhaustive
24-
- exportloopref
2525
- gocheckcompilerdirectives
2626
- gochecksumtype
2727
- gocritic

CHANGELOG.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
[markdownlint](https://dlaa.me/markdownlint/),
7-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog], [markdownlint],
6+
and this project adheres to [Semantic Versioning].
87

98
## [Unreleased]
109

1110
-
1211

12+
## [0.8.2] - 2024-09-11
13+
14+
### Changed in 0.8.2
15+
16+
- Update dependencies
17+
1318
## [0.8.1] - 2024-08-27
1419

1520
### Changed in 0.8.1
@@ -415,3 +420,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
415420
### Added to 0.1.0
416421

417422
- Initial functionality
423+
424+
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
425+
[markdownlint]: https://dlaa.me/markdownlint/
426+
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <[email protected]>. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ BUILD_VERSION := $(shell git describe --always --tags --abbrev=0 --dirty | sed
2222
DOCKER_CONTAINER_NAME := $(PROGRAM_NAME)
2323
DOCKER_IMAGE_NAME := senzing/$(PROGRAM_NAME)
2424
DOCKER_BUILD_IMAGE_NAME := $(DOCKER_IMAGE_NAME)-build
25+
DOCKER_SUT_IMAGE_NAME := $(PROGRAM_NAME)_sut
2526
GIT_REMOTE_URL := $(shell git config --get remote.origin.url)
2627
GIT_REPOSITORY_NAME := $(shell basename `git rev-parse --show-toplevel`)
2728
GIT_VERSION := $(shell git describe --always --tags --long --dirty | sed -e 's/\-0//' -e 's/\-g.......//')
@@ -69,11 +70,10 @@ hello-world: hello-world-osarch-specific
6970
# -----------------------------------------------------------------------------
7071

7172
.PHONY: dependencies-for-development
72-
dependencies-for-development:
73+
dependencies-for-development: dependencies-for-development-osarch-specific
7374
@go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
7475
@go install github.com/vladopajic/go-test-coverage/v2@latest
7576
@go install golang.org/x/tools/cmd/godoc@latest
76-
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.58.1
7777

7878

7979
.PHONY: dependencies

docs/development.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Example:
242242

243243
```console
244244
cd ${GIT_REPOSITORY_DIR}
245-
make docker-test
245+
make clean docker-test
246246

247247
```
248248

go.mod

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
module github.com/senzing-garage/serve-grpc
22

3-
go 1.21.0
3+
go 1.22.0
44

5-
toolchain go1.22.0
5+
toolchain go1.23.1
66

77
require (
88
github.com/aquilax/truncate v1.0.0
9-
github.com/senzing-garage/go-cmdhelping v0.3.0
9+
github.com/senzing-garage/go-cmdhelping v0.3.1
1010
github.com/senzing-garage/go-helpers v0.6.1
1111
github.com/senzing-garage/go-logging v1.5.1
1212
github.com/senzing-garage/go-observing v0.3.3
1313
github.com/senzing-garage/sz-sdk-go v0.14.1
14-
github.com/senzing-garage/sz-sdk-go-core v0.8.1
15-
github.com/senzing-garage/sz-sdk-proto v0.7.6
14+
github.com/senzing-garage/sz-sdk-go-core v0.8.2
15+
github.com/senzing-garage/sz-sdk-proto v0.7.7
1616
github.com/spf13/cobra v1.8.1
1717
github.com/spf13/viper v1.19.0
1818
github.com/stretchr/testify v1.9.0
@@ -39,11 +39,11 @@ require (
3939
github.com/spf13/pflag v1.0.5 // indirect
4040
github.com/subosito/gotenv v1.6.0 // indirect
4141
go.uber.org/multierr v1.11.0 // indirect
42-
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect
43-
golang.org/x/net v0.28.0 // indirect
44-
golang.org/x/sys v0.24.0 // indirect
45-
golang.org/x/text v0.17.0 // indirect
46-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed // indirect
42+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
43+
golang.org/x/net v0.29.0 // indirect
44+
golang.org/x/sys v0.25.0 // indirect
45+
golang.org/x/text v0.18.0 // indirect
46+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
4747
google.golang.org/protobuf v1.34.2 // indirect
4848
gopkg.in/ini.v1 v1.67.0 // indirect
4949
gopkg.in/yaml.v3 v3.0.1 // indirect

go.sum

+16-16
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ github.com/sagikazarmark/locafero v0.6.0 h1:ON7AQg37yzcRPU69mt7gwhFEBwxI6P9T4Qu3
3535
github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE1GbemJYHqdNjX0=
3636
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
3737
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
38-
github.com/senzing-garage/go-cmdhelping v0.3.0 h1:6Yo6tYdYXrCuMwsOKdAErwPGvCi8y9PAFV2UVPOffi0=
39-
github.com/senzing-garage/go-cmdhelping v0.3.0/go.mod h1:J6M/yRqP9ZrwuEQFyxZ9JwkvMis8lZeR4Ot4G0u5YMc=
38+
github.com/senzing-garage/go-cmdhelping v0.3.1 h1:MCAvjx1kv3yEob1gPv4cUQ+fIrE1C/6bMBw8HbdyEqo=
39+
github.com/senzing-garage/go-cmdhelping v0.3.1/go.mod h1:JTEcyT9VnuwqxSAolhtZEJB2IbdsFyv5KmEeoKHrUsU=
4040
github.com/senzing-garage/go-helpers v0.6.1 h1:wxQljvwix3sN7/PkWvWdBKli40lEXpEpaagCJa/336Y=
4141
github.com/senzing-garage/go-helpers v0.6.1/go.mod h1:zLNSiNeI3o0kRjfigSdT5G5GxCXvQlD3iciychF17KA=
4242
github.com/senzing-garage/go-logging v1.5.1 h1:3nqw75gN5x+6PQRop34/49+3kag1aE9dlFne7pILQAg=
@@ -47,10 +47,10 @@ github.com/senzing-garage/go-observing v0.3.3 h1:AhQYgOG012sDZtWXYcXVAaS5qEoDjlW
4747
github.com/senzing-garage/go-observing v0.3.3/go.mod h1:qFUi5Dwb6vmd7izTZGjGbWKUGRHzWzsgbsX3oNSD198=
4848
github.com/senzing-garage/sz-sdk-go v0.14.1 h1:bJOOHROg/SMEZ8KhCypVMr7scMzCuSpDpcMR9e4gzsA=
4949
github.com/senzing-garage/sz-sdk-go v0.14.1/go.mod h1:9Kvr/NpNoU1DSKpVXmZ+91/WFMKvXmjuubFhAiS69Ts=
50-
github.com/senzing-garage/sz-sdk-go-core v0.8.1 h1:cONM0+0UxqrNbeXja0fUOnof1NVqJAui3B212BwgmDc=
51-
github.com/senzing-garage/sz-sdk-go-core v0.8.1/go.mod h1:n86mrlWjLnrJLDSAxnNCPji0ycKUI2WoBJ7iXMHKqJM=
52-
github.com/senzing-garage/sz-sdk-proto v0.7.6 h1:mHiZr094UTBcRW1OkNam1Pu/pMLZRO/4cIIyjQ/yDlY=
53-
github.com/senzing-garage/sz-sdk-proto v0.7.6/go.mod h1:7CZSZ5yEVmT2T0yiijjdq7dWsdQ/KtRgvKRqCy+j7SI=
50+
github.com/senzing-garage/sz-sdk-go-core v0.8.2 h1:IxJD3opnpYgUgRXYRdhQmitD2SlQIGVUCBHQERIAfW8=
51+
github.com/senzing-garage/sz-sdk-go-core v0.8.2/go.mod h1:9yvVB0/YOW53a0JwSEdEKWCbSYSsaAmU+pRThpyNbK4=
52+
github.com/senzing-garage/sz-sdk-proto v0.7.7 h1:yD2gL8OBo8h9UfSCORXB3ilCckW+9zdPC87jURIU0IQ=
53+
github.com/senzing-garage/sz-sdk-proto v0.7.7/go.mod h1:CGtcd5FweXuIpOfbTlRPYCkk5Z0AmX6dGuVkMkRwNQ8=
5454
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
5555
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
5656
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
@@ -69,16 +69,16 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8
6969
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
7070
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
7171
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
72-
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e h1:I88y4caeGeuDQxgdoFPUq097j7kNfw6uvuiNxUBfcBk=
73-
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ=
74-
golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE=
75-
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
76-
golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
77-
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
78-
golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
79-
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
80-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed h1:J6izYgfBXAI3xTKLgxzTmUltdYaLsuBxFCgDHWJ/eXg=
81-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
72+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
73+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
74+
golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
75+
golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
76+
golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
77+
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
78+
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
79+
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
80+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ=
81+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
8282
google.golang.org/grpc v1.66.1 h1:hO5qAXR19+/Z44hmvIM4dQFMSYX9XcWsByfoxutBpAM=
8383
google.golang.org/grpc v1.66.1/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y=
8484
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=

makefiles/darwin.mk

+7-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build-osarch-specific: darwin/amd64
2323
.PHONY: clean-osarch-specific
2424
clean-osarch-specific:
2525
@docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true
26-
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true
26+
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true
2727
@rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true
2828
@rm -f $(MAKEFILE_DIRECTORY)/.coverage || true
2929
@rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true
@@ -43,6 +43,11 @@ coverage-osarch-specific:
4343
@open file://$(MAKEFILE_DIRECTORY)/coverage.html
4444

4545

46+
.PHONY: dependencies-for-development-osarch-specific
47+
dependencies-for-development-osarch-specific:
48+
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest
49+
50+
4651
.PHONY: docker-build-osarch-specific
4752
docker-build-osarch-specific:
4853
@docker build \
@@ -53,6 +58,7 @@ docker-build-osarch-specific:
5358

5459
.PHONY: documentation-osarch-specific
5560
documentation-osarch-specific:
61+
@pkill godoc || true
5662
@godoc &
5763
@open http://localhost:6060
5864

makefiles/darwin_arm64.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build-osarch-specific: darwin/arm64
1111
.PHONY: docker-build-osarch-specific
1212
docker-build-osarch-specific:
1313
@docker build \
14-
--platform linux/amd64 \
14+
--platform linux/arm64 \
1515
--tag $(DOCKER_IMAGE_NAME) \
1616
--tag $(DOCKER_IMAGE_NAME):$(BUILD_VERSION) \
1717
.

makefiles/linux.mk

+7-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build-osarch-specific: linux/amd64
1919
.PHONY: clean-osarch-specific
2020
clean-osarch-specific:
2121
@docker rm --force $(DOCKER_CONTAINER_NAME) 2> /dev/null || true
22-
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) 2> /dev/null || true
22+
@docker rmi --force $(DOCKER_IMAGE_NAME) $(DOCKER_BUILD_IMAGE_NAME) $(DOCKER_SUT_IMAGE_NAME) 2> /dev/null || true
2323
@rm -f $(GOPATH)/bin/$(PROGRAM_NAME) || true
2424
@rm -f $(MAKEFILE_DIRECTORY)/.coverage || true
2525
@rm -f $(MAKEFILE_DIRECTORY)/coverage.html || true
@@ -39,6 +39,11 @@ coverage-osarch-specific:
3939
@xdg-open $(MAKEFILE_DIRECTORY)/coverage.html
4040

4141

42+
.PHONY: dependencies-for-development-osarch-specific
43+
dependencies-for-development-osarch-specific:
44+
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin latest
45+
46+
4247
.PHONY: docker-build-osarch-specific
4348
docker-build-osarch-specific:
4449
@$(DOCKER_BUILDKIT) docker build \
@@ -49,6 +54,7 @@ docker-build-osarch-specific:
4954

5055
.PHONY: documentation-osarch-specific
5156
documentation-osarch-specific:
57+
@pkill godoc || true
5258
@godoc &
5359
@xdg-open http://localhost:6060
5460

makefiles/linux_arm64.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build-osarch-specific: linux/arm64
1313
.PHONY: docker-build-osarch-specific
1414
docker-build-osarch-specific:
1515
@docker build \
16-
--platform linux/amd64 \
16+
--platform linux/arm64 \
1717
--tag $(DOCKER_IMAGE_NAME) \
1818
--tag $(DOCKER_IMAGE_NAME):$(BUILD_VERSION) \
1919
.

makefiles/windows.mk

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ docker-build-osarch-specific:
4444

4545
.PHONY: documentation-osarch-specific
4646
documentation-osarch-specific:
47+
@taskkill /f /t/im godoc
4748
@start /b godoc
4849
@explorer http://localhost:6060
4950

szengineserver/szengineserver.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (server *SzEngineServer) FindNetworkByEntityId(ctx context.Context, request
172172
defer func() { server.traceExit(38, request, result, err, time.Since(entryTime)) }()
173173
}
174174
szEngine := getSzEngine()
175-
result, err = szEngine.FindNetworkByEntityID(ctx, request.GetEntityIds(), request.GetMaxDegrees(), request.GetBuildOutDegree(), request.GetBuildOutMaxEntities(), request.GetFlags())
175+
result, err = szEngine.FindNetworkByEntityID(ctx, request.GetEntityIds(), request.GetMaxDegrees(), request.GetBuildOutDegrees(), request.GetBuildOutMaxEntities(), request.GetFlags())
176176
response := szpb.FindNetworkByEntityIdResponse{
177177
Result: result,
178178
}
@@ -188,7 +188,7 @@ func (server *SzEngineServer) FindNetworkByRecordId(ctx context.Context, request
188188
defer func() { server.traceExit(42, request, result, err, time.Since(entryTime)) }()
189189
}
190190
szEngine := getSzEngine()
191-
result, err = szEngine.FindNetworkByRecordID(ctx, request.GetRecordKeys(), request.GetMaxDegrees(), request.GetBuildOutDegree(), request.GetBuildOutMaxEntities(), request.GetFlags())
191+
result, err = szEngine.FindNetworkByRecordID(ctx, request.GetRecordKeys(), request.GetMaxDegrees(), request.GetBuildOutDegrees(), request.GetBuildOutMaxEntities(), request.GetFlags())
192192
response := szpb.FindNetworkByRecordIdResponse{
193193
Result: result,
194194
}

szengineserver/szengineserver_examples_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func ExampleSzEngineServer_FindNetworkByEntityId() {
201201
szEngineServer := getSzEngineServer(ctx)
202202
entityIDs := `{"ENTITIES": [{"ENTITY_ID": ` + getEntityIDStringForRecord("CUSTOMERS", "1001") + `}, {"ENTITY_ID": ` + getEntityIDStringForRecord("CUSTOMERS", "1002") + `}]}`
203203
request := &szpb.FindNetworkByEntityIdRequest{
204-
BuildOutDegree: 1,
204+
BuildOutDegrees: 1,
205205
BuildOutMaxEntities: 10,
206206
EntityIds: entityIDs,
207207
Flags: senzing.SzNoFlags,
@@ -220,7 +220,7 @@ func ExampleSzEngineServer_FindNetworkByRecordId() {
220220
ctx := context.TODO()
221221
szEngineServer := getSzEngineServer(ctx)
222222
request := &szpb.FindNetworkByRecordIdRequest{
223-
BuildOutDegree: 2,
223+
BuildOutDegrees: 2,
224224
BuildOutMaxEntities: 10,
225225
Flags: senzing.SzNoFlags,
226226
MaxDegrees: 1,

szengineserver/szengineserver_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func TestSzEngineServer_FindNetworkByEntityId(test *testing.T) {
166166
buildOutMaxEntities := int64(10)
167167
flags := senzing.SzNoFlags
168168
request := &szpb.FindNetworkByEntityIdRequest{
169-
BuildOutDegree: buildOutDegree,
169+
BuildOutDegrees: buildOutDegree,
170170
BuildOutMaxEntities: buildOutMaxEntities,
171171
EntityIds: entityIDs,
172172
Flags: flags,
@@ -189,7 +189,7 @@ func TestSzEngineServer_FindNetworkByRecordId(test *testing.T) {
189189
buildOutMaxEntities := int64(10)
190190
flags := senzing.SzNoFlags
191191
request := &szpb.FindNetworkByRecordIdRequest{
192-
BuildOutDegree: buildOutDegree,
192+
BuildOutDegrees: buildOutDegree,
193193
BuildOutMaxEntities: buildOutMaxEntities,
194194
Flags: flags,
195195
MaxDegrees: maxDegrees,

0 commit comments

Comments
 (0)