File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,17 @@ private function establishConnection(): BunnyClient
87
87
$ bunnyConfig ['password ' ] = $ this ->config ->getPass ();
88
88
$ bunnyConfig ['read_write_timeout ' ] = min ($ this ->config ->getReadTimeout (), $ this ->config ->getWriteTimeout ());
89
89
$ bunnyConfig ['timeout ' ] = $ this ->config ->getConnectionTimeout ();
90
- $ bunnyConfig ['heartbeat ' ] = $ this ->config ->getHeartbeat ();
91
90
92
91
// @see https://github.com/php-enqueue/enqueue-dev/issues/229
93
92
// $bunnyConfig['persistent'] = $this->config->isPersisted();
94
93
// if ($this->config->isPersisted()) {
95
94
// $bunnyConfig['path'] = 'enqueue';//$this->config->getOption('path', $this->config->getOption('vhost'));
96
95
// }
97
96
97
+ if ($ this ->config ->getHeartbeat ()) {
98
+ $ bunnyConfig ['heartbeat ' ] = $ this ->config ->getHeartbeat ();
99
+ }
100
+
98
101
if (null !== $ this ->config ->getOption ('tcp_nodelay ' )) {
99
102
$ bunnyConfig ['tcp_nodelay ' ] = $ this ->config ->getOption ('tcp_nodelay ' );
100
103
}
You can’t perform that action at this time.
0 commit comments