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
5978e683
Unverified
Commit
5978e683
authored
Dec 15, 2019
by
george xie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some spelling errors
parent
3f3a0a1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
key_test.go
key_test.go
+1
-1
query/query.go
query/query.go
+2
-2
test/test_util.go
test/test_util.go
+1
-1
No files found.
key_test.go
View file @
5978e683
...
...
@@ -6,8 +6,8 @@ import (
"strings"
"testing"
.
"gopkg.in/check.v1"
.
"github.com/ipfs/go-datastore"
.
"gopkg.in/check.v1"
)
// Hook up gocheck into the "go test" runner.
...
...
query/query.go
View file @
5978e683
...
...
@@ -71,7 +71,7 @@ type Query struct {
// // is not set, Size should always be set.
}
// String returns a string represenation of the Query for debugging/validation
// String returns a string represen
t
ation of the Query for debugging/validation
// purposes. Do not use it for SQL queries.
func
(
q
Query
)
String
()
string
{
s
:=
"SELECT keys"
...
...
@@ -157,7 +157,7 @@ type Result struct {
type
Results
interface
{
Query
()
Query
// the query these Results correspond to
Next
()
<-
chan
Result
// returns a channel to wait for the next result
NextSync
()
(
Result
,
bool
)
// blocks and waits to return the next result, second paramter returns false when results are exhausted
NextSync
()
(
Result
,
bool
)
// blocks and waits to return the next result, second param
e
ter returns false when results are exhausted
Rest
()
([]
Entry
,
error
)
// waits till processing finishes, returns all entries at once.
Close
()
error
// client may call Close to signal early exit
...
...
test/test_util.go
View file @
5978e683
...
...
@@ -36,7 +36,7 @@ func RunBatchTest(t *testing.T, ds dstore.Batching) {
}
}
// Ensure they are not in the datastore before comitting
// Ensure they are not in the datastore before com
m
itting
for
_
,
k
:=
range
keys
{
_
,
err
:=
ds
.
Get
(
k
)
if
err
==
nil
{
...
...
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