Skip to content

Commit

Permalink
support new instance type
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlenmbx committed Aug 25, 2020
1 parent b512930 commit 4acdba5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions es5/client.js
Expand Up @@ -444,6 +444,7 @@ var Client = function () {
* - runtime
* - timeout
* - initializationTimeout
* - instanceType
*
* @param {String} serviceName 服务名
* @param {Object} options Function配置
Expand Down Expand Up @@ -475,6 +476,10 @@ var Client = function () {
opts.initializer = String(opts.initializer);
}

if (opts.instanceType) {
opts.instanceType = String(opts.instanceType);
}

if (opts.memorySize) {
opts.memorySize = parseInt(opts.memorySize, 10);
}
Expand Down
5 changes: 5 additions & 0 deletions lib/client.js
Expand Up @@ -324,6 +324,7 @@ class Client {
* - runtime
* - timeout
* - initializationTimeout
* - instanceType
*
* @param {String} serviceName 服务名
* @param {Object} options Function配置
Expand Down Expand Up @@ -351,6 +352,10 @@ class Client {
opts.initializer = String(opts.initializer);
}

if (opts.instanceType) {
opts.instanceType = String(opts.instanceType);
}

if (opts.memorySize) {
opts.memorySize = parseInt(opts.memorySize, 10);
}
Expand Down

0 comments on commit 4acdba5

Please sign in to comment.