File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
driver/src/main/org/mongodb/protocol Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 17
17
package org .mongodb .protocol ;
18
18
19
19
import org .bson .BSONBinaryWriter ;
20
- import org .bson .BinaryWriterSettings ;
21
- import org .bson .BsonWriterSettings ;
22
20
import org .bson .io .OutputBuffer ;
23
21
import org .mongodb .ReadPreference ;
24
22
import org .mongodb .serialization .Serializer ;
@@ -101,12 +99,9 @@ public int getNumDocuments() {
101
99
}
102
100
103
101
protected <T > void addDocument (final T obj , final Serializer <T > serializer ) {
104
- // TODO fix this constructor call to remove hard coding
105
- final BSONBinaryWriter writer = new BSONBinaryWriter (new BsonWriterSettings (100 ),
106
- new BinaryWriterSettings (1024 * 1024 * 16 ), getBuffer ());
102
+ final BSONBinaryWriter writer = new BSONBinaryWriter (getBuffer ());
107
103
108
104
try {
109
- // TODO: deal with serialization options
110
105
serializer .serialize (writer , obj );
111
106
} finally {
112
107
writer .close ();
You can’t perform that action at this time.
0 commit comments