Send a setup message when the plugin start. (#3101)
This commit is contained in:
parent
995a20bb14
commit
05175cb9bd
|
|
@ -61,7 +61,10 @@ module.exports = {
|
|||
},
|
||||
|
||||
async processMessage(message, queue) {
|
||||
if (message.type === 'html.finished') {
|
||||
if (message.type === 'sitespeedio.setup') {
|
||||
// Let other plugins know that the GCS plugin is alive
|
||||
queue.postMessage(this.make('gcs.setup'));
|
||||
} else if (message.type === 'html.finished') {
|
||||
const make = this.make;
|
||||
const gcsOptions = this.gcsOptions;
|
||||
const baseDir = this.storageManager.getBaseDir();
|
||||
|
|
|
|||
|
|
@ -82,7 +82,10 @@ module.exports = {
|
|||
},
|
||||
|
||||
async processMessage(message, queue) {
|
||||
if (message.type === 'html.finished') {
|
||||
if (message.type === 'sitespeedio.setup') {
|
||||
// Let other plugins know that the s3 plugin is alive
|
||||
queue.postMessage(this.make('s3.setup'));
|
||||
} else if (message.type === 'html.finished') {
|
||||
const make = this.make;
|
||||
const s3Options = this.s3Options;
|
||||
const baseDir = this.storageManager.getBaseDir();
|
||||
|
|
|
|||
Loading…
Reference in New Issue