Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
丁松杰
/
Pole
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
65b7891d
authored
Feb 11, 2020
by
丁松杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 写入 错误队列后 没有 ack
parent
8fc078fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
src/Pole.Core/Consts.cs
src/Pole.EventBus.Rabbitmq/Consumer/ConsumerManager.cs
src/Pole.EventBus.Rabbitmq/Consumer/ConsumerRunner.cs
src/Pole.Core/Consts.cs
View file @
65b7891d
...
...
@@ -12,4 +12,3 @@ namespace Pole.Core
public
const
string
ConsumerExceptionDetailsStr
=
"pole-consumer-exception-details"
;
}
}
}
src/Pole.EventBus.Rabbitmq/Consumer/ConsumerManager.cs
View file @
65b7891d
...
...
@@ -40,7 +40,6 @@ namespace Pole.EventBus.RabbitMQ
private
Timer
DistributedMonitorTime
{
get
;
set
;
}
private
Timer
DistributedHoldTimer
{
get
;
set
;
}
const
int
lockHoldingSeconds
=
60
;
int
distributedMonitorTimeLock
=
0
;
int
distributedHoldTimerLock
=
0
;
int
heathCheckTimerLock
=
0
;
private
async
Task
Start
()
...
...
src/Pole.EventBus.Rabbitmq/Consumer/ConsumerRunner.cs
View file @
65b7891d
...
...
@@ -138,10 +138,10 @@ namespace Pole.EventBus.RabbitMQ
Model
.
Model
.
ExchangeDeclare
(
errorExchangeName
,
"direct"
,
true
);
Model
.
Model
.
QueueDeclare
(
errorQueueName
,
true
,
false
,
false
,
null
);
Model
.
Model
.
QueueBind
(
errorQueueName
,
errorExchangeName
,
string
.
Empty
);
}
if
(!
Consumer
.
Config
.
AutoAck
)
{
Model
.
Model
.
BasicAck
(
ea
.
DeliveryTag
,
false
);
if
(!
Consumer
.
Config
.
AutoAck
)
{
Model
.
Model
.
BasicAck
(
ea
.
DeliveryTag
,
false
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment