Skip to content

Commit

Permalink
changes statusmap to an object instead of a map
Browse files Browse the repository at this point in the history
  • Loading branch information
iangeckeler committed Aug 9, 2019
1 parent 9c1edf9 commit 0ff9f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = class Server extends grpc.Server {
constructor(/** @type {function} */ uncaughtErrorHandler) {
super();
this.uncaughtErrorHandler = uncaughtErrorHandler;
this._statusMap = new Map();
this._statusMap = {};
this.addService(healthcheck.HealthCheck, {
check: checkHandler.bind(this),
watch: watchHandler.bind(this)
Expand Down Expand Up @@ -138,7 +138,7 @@ server.addService(
"Status map does not have the service name you requested."
);
}
this._statusMap = status;
this._statusMap[serviceName] = status;
}

/**
Expand Down

0 comments on commit 0ff9f55

Please sign in to comment.