mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Modify APIs from Aysnc -> Sync using timeout
This commit is contained in:
parent
d67d06a19f
commit
a6266931ad
10 changed files with 354 additions and 239 deletions
|
@ -874,6 +874,9 @@ program
|
|||
.option('-c, --connect-push <endpoint>'
|
||||
, 'push endpoint'
|
||||
, cliutil.list)
|
||||
.option('-u, --connect-sub <endpoint>'
|
||||
, 'sub endpoint'
|
||||
, cliutil.list)
|
||||
.action(function(options) {
|
||||
if (!options.secret) {
|
||||
this.missingArgument('--secret')
|
||||
|
@ -881,6 +884,9 @@ program
|
|||
if (!options.connectPush) {
|
||||
this.missingArgument('--connect-push')
|
||||
}
|
||||
if (!options.connectSub) {
|
||||
this.missingArgument('--connect-sub')
|
||||
}
|
||||
|
||||
require('./units/api')({
|
||||
port: options.port
|
||||
|
@ -888,6 +894,7 @@ program
|
|||
, secret: options.secret
|
||||
, endpoints: {
|
||||
push: options.connectPush
|
||||
, sub: options.connectSub
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -1338,6 +1345,7 @@ program
|
|||
, '--port', options.apiPort
|
||||
, '--secret', options.authSecret
|
||||
, '--connect-push', options.bindAppPull
|
||||
, '--connect-sub', options.bindAppPub
|
||||
])
|
||||
// websocket
|
||||
, procutil.fork(__filename, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue