fix(cli): simplify service registration lease (#37576)
Co-authored-by: Dax Raad <826656+thdxr@users.noreply.github.com>
This commit is contained in:
parent
6ea8247e0f
commit
60ce33cde8
5 changed files with 173 additions and 77 deletions
|
|
@ -161,7 +161,6 @@ export const Info = Schema.Struct({
|
|||
url: Schema.String,
|
||||
pid: Schema.Int.check(Schema.isGreaterThan(0)),
|
||||
password: Schema.optional(Schema.String),
|
||||
startedAt: Schema.optional(Schema.Int.check(Schema.isGreaterThan(0))),
|
||||
})
|
||||
|
||||
const decode = Schema.decodeUnknownEffect(Schema.fromJsonString(Info))
|
||||
|
|
|
|||
|
|
@ -50,6 +50,4 @@ export type Info = {
|
|||
readonly pid: number
|
||||
/** Private service password, when authentication is enabled. */
|
||||
readonly password?: string
|
||||
/** Registration generation used to resolve owner write races. */
|
||||
readonly startedAt?: number
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue