refactor: transfer

This commit is contained in:
xiaojunnuo
2021-02-08 15:12:35 +08:00
parent e41c084381
commit 2232f21b48
6 changed files with 76 additions and 5 deletions
@@ -2,7 +2,7 @@ import fs from 'fs'
import logger from '../utils/util.log.js'
import dayjs from 'dayjs'
import Sleep from '../utils/util.sleep.js'
import commonUtil from '../utils/util.common.js'
export class AbstractPlugin {
constructor (options) {
if (options == null) {
@@ -10,7 +10,7 @@ export class AbstractPlugin {
}
const { accessProviders } = options
this.logger = logger
this.accessProviders = accessProviders
this.accessProviders = commonUtil.arrayToMap(accessProviders)
}
appendTimeSuffix (name) {