Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
0353c0ca
Commit
0353c0ca
authored
Nov 13, 2016
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix channel buffer size in namespace datastore to use KeysOnlyBufSize
parent
dfb94c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
namespace/namespace.go
namespace/namespace.go
+7
-1
No files found.
namespace/namespace.go
View file @
0353c0ca
...
...
@@ -58,7 +58,13 @@ func (d *datastore) Query(q dsq.Query) (dsq.Results, error) {
return
nil
,
err
}
ch
:=
make
(
chan
dsq
.
Result
)
var
ch
chan
dsq
.
Result
if
q
.
KeysOnly
{
ch
=
make
(
chan
dsq
.
Result
,
dsq
.
KeysOnlyBufSize
)
}
else
{
ch
=
make
(
chan
dsq
.
Result
)
}
go
func
()
{
defer
close
(
ch
)
defer
qr
.
Close
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment