node_modules/binance/lib/util/BaseRestClient.js
/**
     * Trigger time sync and store promise
     */
Trigger time sync and store promise
Trigger time sync and store promise
syncTime() {
        if (this.options.disableTimeSync === true) {
            return Promise.resolve(false);
        }
        if (this.syncTimePromise !== null) {
            return this.syncTimePromise;
        }
        this.syncTimePromise = this.fetchTimeOffset().then(offset => {
            this.timeOffset = offset;
            this.syncTimePromise = null;
        });
        return this.syncTimePromise;
    }
syncTime ( ) { if ( this . options . disableTimeSync === true ) { return Promise . resolve ( false ) ; } if ( this . syncTimePromise !== null ) { return this . syncTimePromise ; } this . syncTimePromise = this . fetchTimeOffset ( ) . then ( offset => { this . timeOffset = offset ; this . syncTimePromise = null ; } ) ; return this . syncTimePromise ; }
Trigger time sync and store promise
Trigger time sync and store promise