UNPKG

@voicenter-team/mysql-dynamic-cluster

Version:

Galera cluster with implementation of dynamic choose mysql server for queries, caching, hashing it and metrics

19 lines 420 B
"use strict"; /** * Created by Bohdan on Sep, 2021 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Utils = void 0; /** * Helper math utils */ class Utils { static clamp(num, min, max) { return Math.min(Math.max(num, min), max); } sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } } exports.Utils = Utils; //# sourceMappingURL=Utils.js.map