Skip to content

Commit

Permalink
Fixup post review
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Oct 9, 2024
1 parent 715e940 commit 6a40200
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/hdcontroller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
'use strict';

import * as assert from 'assert';
import * as async from 'async';
Expand Down Expand Up @@ -186,9 +186,7 @@ export class HDProxydClient {
reqHeaders['X-Scal-Request-Uids'] = reqUids;
reqHeaders['X-Scal-Trace-Ids'] = reqUids;
if (params && params.range) {

reqHeaders.Range = `bytes=${params.range[0]}-${params.range[1]}`;

}
let realPath: string;
if (key === '/job/delete') {
Expand Down Expand Up @@ -250,7 +248,7 @@ export class HDProxydClient {
size: number, key: string, log: werelogs.RequestLogger,
callback: HDProxydCallback, params: Params,
payload: object | undefined): void {
//tslint:disable-next-line:no-any
// tslint:disable-next-line:no-any
const headers = ( params.headers ? params.headers : {}) as { 'content-length'?: number; [key: string]: any };
const req = this._createRequestHeader(method, headers, key, params,
log);
Expand Down Expand Up @@ -430,7 +428,7 @@ export class HDProxydClient {
hostname: currentBootstrap[0],
port: currentBootstrap[1],
method: 'GET',
path: '/metrics', // XXX
path: '/metrics',
headers: {
'X-Scal-Request-Uids': logger.getSerializedUids(),
},
Expand Down

0 comments on commit 6a40200

Please sign in to comment.