chore: error message

This commit is contained in:
Chareice 2024-08-04 08:45:51 +08:00 committed by mytharcher
parent 28cda22a79
commit 9edaa9183a

View File

@ -37,7 +37,7 @@ export class SyncMessageManager {
if (transaction) {
return await new Promise((resolve, reject) => {
const timer = setTimeout(() => {
reject(new Error('publish timeout'));
reject(new Error(`Publish message to ${channel} timeout, message: ${JSON.stringify(message)}`));
}, 5000);
transaction.afterCommit(async () => {