MCPcopy Index your code
hub / github.com/ether/etherpad / _publish

Method _publish

src/node/security/SecretRotator.ts:110–116  ·  view source on GitHub ↗
(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');

Callers 1

_updateMethod · 0.95

Calls 2

setMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected