Neolithic Programming Machine

    @muta-extra/synchronizer
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.0-dev.17 • Public • Published

    @muta-extra/synchronizer

    Providing the default synchronizer for Muta instance.

    Environment Variables

    HERMIT_FETCH_CONCURRENCY

    Maximum number of concurrent requests

    • type: number
    • default: 20

    HERMIT_MAX_PREFETCH_SIZE

    Maximum number of concurrent requests for blocks

    • type: number
    • default: 5

    Programming Usage

    import {
      ISynchronizerAdapter,
      PollingSynchronizer,
    } from '@muta-extra/synchronizer';
     
    export function sync() {
      const myAdapter: ISynchronizerAdapter = {
        // ...
      };
      return new PollingSynchronizer(myAdapter).run();
    }
     
    sync();

    Keywords

    none

    Install

    npm i @muta-extra/synchronizer

    DownloadsWeekly Downloads

    21

    Version

    0.4.0-dev.17

    License

    none

    Unpacked Size

    66 kB

    Total Files

    66

    Last publish

    Collaborators

    • avatar