Update RedisServerMutex.php

This commit is contained in:
黄朝晖 2019-11-12 16:27:22 +08:00 committed by GitHub
parent 1bdf36b380
commit 3fb94efb52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ class RedisServerMutex implements ServerMutex
protected function getMutexName(Crontab $crontab)
{
return 'framework' . DIRECTORY_SEPARATOR . 'crontab-' . sha1($crontab->getName() . $crontab->getRule()) . '-sv';
return 'hyperf' . DIRECTORY_SEPARATOR . 'crontab-' . sha1($crontab->getName() . $crontab->getRule()) . '-sv';
}
protected function getMacAddress(): ?string
@ -83,4 +83,4 @@ class RedisServerMutex implements ServerMutex
return null;
}
}
}