File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
"strings"
7
7
"testing"
8
8
9
- . "gopkg.in/check.v1"
10
9
. "github.com/ipfs/go-datastore"
10
+ . "gopkg.in/check.v1"
11
11
)
12
12
13
13
// Hook up gocheck into the "go test" runner.
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ type Query struct {
71
71
// // is not set, Size should always be set.
72
72
}
73
73
74
- // String returns a string represenation of the Query for debugging/validation
74
+ // String returns a string representation of the Query for debugging/validation
75
75
// purposes. Do not use it for SQL queries.
76
76
func (q Query ) String () string {
77
77
s := "SELECT keys"
@@ -157,7 +157,7 @@ type Result struct {
157
157
type Results interface {
158
158
Query () Query // the query these Results correspond to
159
159
Next () <- chan Result // returns a channel to wait for the next result
160
- NextSync () (Result , bool ) // blocks and waits to return the next result, second paramter returns false when results are exhausted
160
+ NextSync () (Result , bool ) // blocks and waits to return the next result, second parameter returns false when results are exhausted
161
161
Rest () ([]Entry , error ) // waits till processing finishes, returns all entries at once.
162
162
Close () error // client may call Close to signal early exit
163
163
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func RunBatchTest(t *testing.T, ds dstore.Batching) {
36
36
}
37
37
}
38
38
39
- // Ensure they are not in the datastore before comitting
39
+ // Ensure they are not in the datastore before committing
40
40
for _ , k := range keys {
41
41
_ , err := ds .Get (k )
42
42
if err == nil {
You can’t perform that action at this time.
0 commit comments