mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
chore: error message
This commit is contained in:
parent
28cda22a79
commit
9edaa9183a
@ -37,7 +37,7 @@ export class SyncMessageManager {
|
|||||||
if (transaction) {
|
if (transaction) {
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
const timer = setTimeout(() => {
|
const timer = setTimeout(() => {
|
||||||
reject(new Error('publish timeout'));
|
reject(new Error(`Publish message to ${channel} timeout, message: ${JSON.stringify(message)}`));
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
transaction.afterCommit(async () => {
|
transaction.afterCommit(async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user