Skip to content

Why ProviderConfig.setDispatcher() do exchanger check? #3518

Closed

Description

@Bricks-Man
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

我在ProviderConfig.setDispatcher()里面发现了如下代码:
I found the following code in ProviderConfig.setDispatcher():

    public void setDispatcher(String dispatcher) {
        checkExtension(Dispatcher.class, Constants.DISPATCHER_KEY, exchanger);
        checkExtension(Dispatcher.class, "dispather", exchanger);
        this.dispatcher = dispatcher;
    }

我不明白为什么需要在这里做这个检查。
I don't understand why this method needs to do this check here.

Activity

  1. added
    type/bug
    on Feb 21, 2019
  2. added this to the 2.7.1 milestone on Feb 21, 2019
  3. chickenlj commented on Feb 21, 2019

    @chickenlj
    Contributor

    I believe exchanger was accidentally checked in here, we should remove it or change to dispatcher.

  4. Bricks-Man commented on Feb 21, 2019

    @Bricks-Man
    ContributorAuthor

    I believe exchanger was accidentally checked in here, we should remove it or change to dispatcher.

    Well,I think it's an accidentally,too.Could I commit a pr to fix it?

  5. CrazyHZM commented on Feb 21, 2019

    @CrazyHZM
    Member

    Please feel free to submit.

  6. added a commit that references this issue on Mar 26, 2019
    897b80d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions