You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by gu...@apache.org on 2021/11/08 02:40:54 UTC

[dubbo] branch 3.0 updated: Update Compressor.java (#9223)

This is an automated email from the ASF dual-hosted git repository.

guohao pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 0bb1098  Update Compressor.java (#9223)
0bb1098 is described below

commit 0bb1098f97786bd4e16758cc2383f93e38b95e84
Author: 灼华 <43...@users.noreply.github.com>
AuthorDate: Mon Nov 8 10:40:33 2021 +0800

    Update Compressor.java (#9223)
---
 .../src/main/java/org/apache/dubbo/rpc/protocol/tri/Compressor.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/Compressor.java b/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/Compressor.java
index 09c6e6b..03acfc4 100644
--- a/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/Compressor.java
+++ b/dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/Compressor.java
@@ -42,6 +42,9 @@ public interface Compressor {
         if (null == compressorStr) {
             return null;
         }
+        if (compressorStr.equals(DEFAULT_COMPRESSOR)) {
+            return NONE;
+        }
         return frameworkModel.getExtensionLoader(Compressor.class).getExtension(compressorStr);
     }