Skip to content

Commit

Permalink
resolved code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritik Rawal authored and Ritik Rawal committed Mar 8, 2023
1 parent 223ea80 commit 4bfc92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adapters/http/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class HttpClientAdapter extends Adapter {

async send(message: GleeMessage): Promise<void> {
const headers = {}
// const config: HttpAdapterConfig = await this.resolveProtocolConfig('http')
// const auth: HttpAuthConfig = await this.getAuthConfig(config.client.auth)
// headers['Authentication'] = auth?.token
const config: HttpAdapterConfig = await this.resolveProtocolConfig('http')
const auth: HttpAuthConfig = await this.getAuthConfig(config.client.auth)
headers['Authentication'] = auth?.token
const serverUrl = this.serverUrlExpanded
this.channelNames.forEach(async (channelName) => {
const channelInfo = this.parsedAsyncAPI.channel(channelName)
Expand Down

0 comments on commit 4bfc92f

Please sign in to comment.