Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ufo
/
yohoufo-fore
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chenchao
5 years ago
Commit
80f419e2d6112fffacf7cbb33c374350606ae6e2
1 parent
dc85a61a
add log
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
msg-center/src/main/java/com/yohoufo/msg/service/limit/RedisLimitStrategy.java
msg-center/src/main/java/com/yohoufo/msg/service/limit/RedisLimitStrategy.java
View file @
80f419e
...
...
@@ -76,7 +76,7 @@ public class RedisLimitStrategy {
RedisLimitor
redisLimitor
=
redisConcurrentFactory
.
newRedisLimitor
(
finalRKB
.
getKey
(),
permit
,
timeout
,
timeUnit
);
boolean
inbound
=
redisLimitor
.
tryAcquire
();
logger
.
info
(
"checkLimitBySingleRule finish key {} inbound {}"
,
finalRKB
.
getKey
(),
inbound
);
CheckResultNode
crn
=
CheckResultNode
.
builder
().
inbound
(
inbound
).
redisLimitor
(
redisLimitor
).
build
();
return
crn
;
}
...
...
Please
register
or
login
to post a comment