REQ-3345: 设置群上限
This commit is contained in:
parent
bfd737faf1
commit
f18d4a025a
@ -16,7 +16,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
public class GroupProps {
|
||||
|
||||
public int defaultMemberLimit = 499;
|
||||
public int syncMessageType = 20;
|
||||
public int syncMessageTps = 20;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
@ -125,7 +125,7 @@ public class GroupMessageSyncJob implements InitializingBean {
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
tps = groupProps.syncMessageType;
|
||||
tps = groupProps.syncMessageTps;
|
||||
executor = Executors.newFixedThreadPool(
|
||||
tps + 1, new NamedThreadFactory(GroupMessageSyncJob.class.getName()));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user