UNPKG

hfxbus

Version:

Redis backed high frequency exchange bus

16 lines (15 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HFXBUS_ID_SIZE = 16; exports.DISTRIBUTED_ROUTING = Symbol('DISTRIBUTED_ROUTING'); exports.withValue = (object, property, value) => Reflect.defineProperty(object, property, { value, writable: false, configurable: false, enumerable: true, }); exports.setErrorKind = (error, kind) => { exports.withValue(error, 'code', kind); exports.withValue(error, 'errno', kind); return error; };