Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
update agent API
Browse files Browse the repository at this point in the history
Signed-off-by: Won Jun Jang <wjang@uber.com>
  • Loading branch information
black-adder committed Apr 16, 2018
1 parent 2372bdc commit 007d770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/throttler/remote_throttler.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ export default class RemoteThrottler {

_fetchCredits(operations: any) {
const serviceName: string = encodeURIComponent(this._serviceName);
const uuid: string = encodeURIComponent(this._uuid);
const ops: string = operations.map(encodeURIComponent).join('&operation=');
const url: string = `/credits?service=${serviceName}&uuid=${uuid}&operation=${ops}`;
const clientID: string = encodeURIComponent(this._uuid);
const ops: string = operations.map(encodeURIComponent).join('&operations=');
const url: string = `/credits?service=${serviceName}&clientID=${clientID}&operations=${ops}`;

const success: Function = body => {
this._parseCreditResponse(body);
Expand Down

0 comments on commit 007d770

Please sign in to comment.