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;
class Bucket
{
private static $streamWrapper;
private static $defaultChunkSizeBytes = 261120;
private $collectionsWrapper;
private $databaseName;
......@@ -49,7 +50,7 @@ class Bucket
{
$options += [
'bucketName' => 'fs',
'chunkSizeBytes' => 261120,
'chunkSizeBytes' => self::$defaultChunkSizeBytes,
];
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