Skip to content

Commit

Permalink
core: add comments to empty headers/body for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Oct 25, 2024
1 parent e4f23f9 commit 9228bd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export async function getRelayerWithAuth(config: Config, url: string) {
config,
path,
headers,
'',
'', // Body
symmetricKey,
SIG_EXPIRATION_BUFFER_MS,
)
Expand All @@ -180,7 +180,7 @@ export async function getRelayerWithAdmin(config: Config, url: string) {
config,
path,
headers,
'',
'', // Body
symmetricKey,
SIG_EXPIRATION_BUFFER_MS,
)
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/utils/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class RelayerWebsocket {
return addExpiringAuthToHeaders(
this.config,
body.topic,
{},
{}, // Headers
JSON.stringify(body),
symmetricKey,
SIG_EXPIRATION_BUFFER_MS,
Expand All @@ -173,7 +173,7 @@ export class RelayerWebsocket {
return addExpiringAuthToHeaders(
this.config,
body.topic,
{},
{}, // Headers
JSON.stringify(body),
symmetricKey,
SIG_EXPIRATION_BUFFER_MS,
Expand Down

0 comments on commit 9228bd9

Please sign in to comment.