Skip to content

Commit dec988a

Browse files
committed
fix function cal function
1 parent 8e40da1 commit dec988a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bandwidth.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function __construct(int $bucketSize = 0, int $tokensPerInterval = 1024,
2424
$this->KB = $this->bucket->getTokensPerInterval()/1024/1024;
2525
$this->concurrent = new Concurrent(1);
2626

27-
if (function_exists('app') && app()->bound('reactphp.filesystem')) {
28-
$this->filesystem = app('reactphp.filesystem');
27+
if (function_exists('app') && app('fs')) {
28+
$this->filesystem = app('fs');
2929
} else {
3030
$this->filesystem = Factory::create();
3131
}

0 commit comments

Comments
 (0)