Bladeren bron

Fix incorrect protocol description in FlowRequestData writer/decoder (#1607)

Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
master
ZhiQiang Gu GitHub 4 jaren geleden
bovenliggende
commit
c7949f5f4e
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: 4AEE18F83AFDEB23
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      sentinel-cluster/sentinel-cluster-client-default/src/main/java/com/alibaba/csp/sentinel/cluster/client/codec/data/FlowRequestDataWriter.java
  2. +1
    -1
      sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/server/codec/data/FlowRequestDataDecoder.java

+ 1
- 1
sentinel-cluster/sentinel-cluster-client-default/src/main/java/com/alibaba/csp/sentinel/cluster/client/codec/data/FlowRequestDataWriter.java Bestand weergeven

@@ -22,7 +22,7 @@ import io.netty.buffer.ByteBuf;

/**
* +-------------------+--------------+----------------+---------------+------------------+
* | RequestID(8 byte) | Type(1 byte) | FlowID(4 byte) | Count(4 byte) | PriorityFlag (1) |
* | RequestID(8 byte) | Type(1 byte) | FlowID(8 byte) | Count(4 byte) | PriorityFlag (1) |
* +-------------------+--------------+----------------+---------------+------------------+
*
* @author Eric Zhao


+ 1
- 1
sentinel-cluster/sentinel-cluster-server-default/src/main/java/com/alibaba/csp/sentinel/cluster/server/codec/data/FlowRequestDataDecoder.java Bestand weergeven

@@ -25,7 +25,7 @@ import io.netty.buffer.ByteBuf;
* Decoder for {@link FlowRequestData} from {@code ByteBuf} stream. The layout:
* </p>
* <pre>
* | flow ID (4) | count (4) | priority flag (1) |
* | flow ID (8) | count (4) | priority flag (1) |
* </pre>
*
* @author Eric Zhao


Laden…
Annuleren
Opslaan