Skip to content

Commit

Permalink
Add oauthbearer_token_refresh_cb config value for setting setOauthbea…
Browse files Browse the repository at this point in the history
…rerTokenRefreshCb
  • Loading branch information
scorgn committed Oct 24, 2024
1 parent 867d45f commit b391da8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rdkafka/RdKafkaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ private function getConf(): Conf
if (isset($this->config['stats_cb'])) {
$this->conf->setStatsCb($this->config['stats_cb']);
}

if (isset($this->config['oauthbearer_token_refresh_cb'])) {
$this->conf->setOauthbearerTokenRefreshCb($this->config['oauthbearer_token_refresh_cb']);
}
}

return $this->conf;
Expand Down

0 comments on commit b391da8

Please sign in to comment.