Method
_publish
(params: LegacyParams, id:string|null = null)
Source from the content-addressed store, hash-verified
| 108 | } |
| 109 | |
| 110 | async _publish(params: LegacyParams, id:string|null = null) { |
| 111 | // Params are published to the db with a randomly generated key to avoid race conditions with |
| 112 | // other instances. |
| 113 | if (id == null) id = `${this._dbPrefix}:${(await crypto.randomBytes(32)).toString('hex')}`; |
| 114 | await db.set(id, params); |
| 115 | return id; |
| 116 | } |
| 117 | |
| 118 | async start() { |
| 119 | this._logger.debug('starting secret rotation'); |
Tested by
no test coverage detected