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
a009d2bd
Commit
a009d2bd
authored
Jan 28, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leveldb: options type fix
parent
c276ac43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
leveldb/datastore.go
leveldb/datastore.go
+4
-1
No files found.
leveldb/datastore.go
View file @
a009d2bd
...
...
@@ -14,7 +14,10 @@ type Datastore struct {
type
Options
opt
.
Options
func
NewDatastore
(
path
string
,
opts
*
Options
)
(
*
Datastore
,
error
)
{
nopts
:=
opt
.
Options
(
*
opts
)
var
nopts
opt
.
Options
if
opts
!=
nil
{
nopts
=
opt
.
Options
(
*
opts
)
}
db
,
err
:=
leveldb
.
OpenFile
(
path
,
&
nopts
)
if
err
!=
nil
{
return
nil
,
err
...
...
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