Commit 400e829c authored by Jeremy Mikola's avatar Jeremy Mikola

Use private constant for default chunk size

parent 32600bb0
...@@ -20,6 +20,7 @@ use MongoDB\Operation\Find; ...@@ -20,6 +20,7 @@ use MongoDB\Operation\Find;
class Bucket class Bucket
{ {
private static $streamWrapper; private static $streamWrapper;
private static $defaultChunkSizeBytes = 261120;
private $collectionsWrapper; private $collectionsWrapper;
private $databaseName; private $databaseName;
...@@ -49,7 +50,7 @@ class Bucket ...@@ -49,7 +50,7 @@ class Bucket
{ {
$options += [ $options += [
'bucketName' => 'fs', 'bucketName' => 'fs',
'chunkSizeBytes' => 261120, 'chunkSizeBytes' => self::$defaultChunkSizeBytes,
]; ];
if (isset($options['bucketName']) && ! is_string($options['bucketName'])) { if (isset($options['bucketName']) && ! is_string($options['bucketName'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment