Skip to content

Commit 79eaa14

Browse files
committed
gps
1 parent d3921fb commit 79eaa14

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎pkg/gps/GpsConsumer.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ private function receiveMessage($timeout)
141141
if ($messages) {
142142
return $this->convertMessage(current($messages));
143143
}
144-
} catch (ServiceException $e) {} // timeout
144+
} catch (ServiceException $e) {
145+
} // timeout
145146
}
146147
}

‎pkg/gps/GpsContext.php‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ public function declareTopic(GpsTopic $topic)
113113
{
114114
try {
115115
$this->getClient()->createTopic($topic->getTopicName());
116-
} catch (ConflictException $e) {}
116+
} catch (ConflictException $e) {
117+
}
117118
}
118119

119120
/**
@@ -126,9 +127,10 @@ public function subscribe(GpsTopic $topic, GpsQueue $queue)
126127

127128
try {
128129
$this->getClient()->subscribe($queue->getQueueName(), $topic->getTopicName(), [
129-
'ackDeadlineSeconds' => $this->options['ackDeadlineSeconds']
130+
'ackDeadlineSeconds' => $this->options['ackDeadlineSeconds'],
130131
]);
131-
} catch (ConflictException $e) {}
132+
} catch (ConflictException $e) {
133+
}
132134
}
133135

134136
/**

0 commit comments

Comments
 (0)