移除 edge- 前缀

This commit is contained in:
iVampireSP.com 2023-02-09 19:56:54 +08:00
parent 90a0227b7c
commit dd70647fa4
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -114,7 +114,7 @@ while (true) {
redis_hset('nodes', $node_id, [
'type' => 'edge',
'id' => 'edge-' . $node_id,
'id' => $node_id,
'ip' => $ip,
// utc +8 timestamp
'last_heartbeat' => time(),
@ -212,7 +212,7 @@ while (true) {
output('!!!!!!!!!!!!!!!!!');
$add_header = <<<EOF
add_header 'Cluster-Ready-Node-Id' 'edge-{$node_id}';
add_header 'Cluster-Ready-Node-Id' '{$node_id}';
add_header 'Powered-by' 'Cluster Ready!';
EOF;