ravendb
Version:
RavenDB client for Node.js
15 lines • 580 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RaftIdGenerator = void 0;
const node_crypto_1 = require("node:crypto");
class RaftIdGenerator {
static newId() {
return (0, node_crypto_1.randomUUID)();
}
// if the don't care id is used it may cause that on retry/resend of the command we will end up in double applying of the command (once for the original request and for the retry).
static dontCareId() {
return "";
}
}
exports.RaftIdGenerator = RaftIdGenerator;
//# sourceMappingURL=RaftIdGenerator.js.map