We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a21ae4 commit 7d18372Copy full SHA for 7d18372
mongo/options/gridfsoptions.go
@@ -9,7 +9,6 @@ package options
9
import (
10
"time"
11
12
- "github.com/mongodb/mongo-go-driver/mongo/gridfs"
13
"github.com/mongodb/mongo-go-driver/mongo/readconcern"
14
"github.com/mongodb/mongo-go-driver/mongo/readpref"
15
"github.com/mongodb/mongo-go-driver/mongo/writeconcern"
@@ -20,7 +19,7 @@ import (
20
19
var DefaultName = "fs"
21
22
// DefaultChunkSize is the default size of each file chunk in bytes.
23
-var DefaultChunkSize = gridfs.DefaultChunkSize
+var DefaultChunkSize int32 = 255 * 1024 // 255 KiB
24
25
// DefaultRevision is the default revision number for a download by name operation.
26
var DefaultRevision int32 = -1
0 commit comments