Skip to content

Commit 2956303

Browse files
committed
[fix] Fixed channel buffer size. Include the link time gi flags
1 parent 6bd7806 commit 2956303

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ GOGET=$(GOCMD) get
99
GOMOD=$(GOCMD) mod
1010
GOFMT=$(GOCMD) fmt
1111
BIN_NAME=redisgraph-benchmark-go
12+
DISTDIR = ./dist
13+
1214
# Build-time GIT variables
1315
ifeq ($(GIT_SHA),)
1416
GIT_SHA:=$(shell git rev-parse HEAD)
@@ -18,6 +20,8 @@ ifeq ($(GIT_DIRTY),)
1820
GIT_DIRTY:=$(shell git diff --no-ext-diff 2> /dev/null | wc -l)
1921
endif
2022

23+
LDFLAGS = "-X 'main.GitSHA1=$(GIT_SHA)' -X 'main.GitDirty=$(GIT_DIRTY)'"
24+
2125
.PHONY: all test coverage build checkfmt fmt
2226
all: test coverage build checkfmt fmt
2327

redisgraph-bechmark-go.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func main() {
109109

110110
// a WaitGroup for the goroutines to tell us they've stopped
111111
dataPointProcessingWg := sync.WaitGroup{}
112-
graphDatapointsChann := make(chan GraphQueryDatapoint, *numberRequests)
112+
graphDatapointsChann := make(chan GraphQueryDatapoint, *clients)
113113

114114
// listen for C-c
115115
c := make(chan os.Signal, 1)

0 commit comments

Comments
 (0)