Skip to content

Sender.setup方法无法传入自定义ExecutorService #1124

Closed
@wendal

Description

public static ExecutorService setup(ExecutorService es) {
        if (es != null)
            return es;
        if (es == null)
            es = Executors.newFixedThreadPool(64);
        Sender.es = es;
        return es;
    }

代码一目了然... 第一个if应该是 if (Sender.es != null)

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions