Skip to content

Commit

Permalink
Fix (#14671)
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc authored Sep 13, 2024
1 parent ddb3fba commit c833069
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public static String toTable(List<String> header, List<List<String>> table) {
for (int j = 0; j < widths.length; j++) {
String cell = row.get(j);
rowbuf.append(' ');
int remaing = cell.length();
while (remaing > 0) {
int remaining = cell.length();
while (remaining > 0) {

if (rowbuf.length() >= totalWidth) {
buf.append(rowbuf.toString());
Expand All @@ -132,8 +132,8 @@ public static String toTable(List<String> header, List<List<String>> table) {
// }
}

rowbuf.append(cell, cell.length() - remaing, cell.length() - remaing + 1);
remaing--;
rowbuf.append(cell, cell.length() - remaining, cell.length() - remaining + 1);
remaining--;
}
int pad = widths[j] - cell.length();
if (pad > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
import static org.apache.dubbo.common.constants.LoggerCodeConstants.CONFIG_UNDEFINED_ARGUMENT;

/**
* ChanelHandlerTest
* ChannelHandlerTest
* <p>
* mvn clean test -Dtest=*PerformanceClientTest -Dserver=10.20.153.187:9911
*/
class ChanelHandlerTest {
class ChannelHandlerTest {

private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChanelHandlerTest.class);
private static final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(ChannelHandlerTest.class);

public static ExchangeClient initClient(String url) {
// Create client and build connection
Expand Down Expand Up @@ -113,12 +113,12 @@ public PeformanceTestHandler(String url) {

@Override
public void connected(Channel channel) throws RemotingException {
System.out.println("connected event,chanel;" + channel);
System.out.println("connected event,channel;" + channel);
}

@Override
public void disconnected(Channel channel) throws RemotingException {
System.out.println("disconnected event,chanel;" + channel);
System.out.println("disconnected event,channel;" + channel);
initClient(url);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ public PeformanceTestHandler() {

@Override
public void connected(Channel channel) throws RemotingException {
System.out.println("connected event,chanel;" + channel);
System.out.println("connected event,channel;" + channel);
}

@Override
public void disconnected(Channel channel) throws RemotingException {
System.out.println("disconnected event,chanel;" + channel);
System.out.println("disconnected event,channel;" + channel);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private static boolean isInstancesOverLimit(
// client side error
throw new IllegalStateException("interface " + interfaceClass
+ " `s callback instances num exceed providers limit :" + limit + " ,current num: " + (count + 1)
+ ". The new callback service will not work !!! you can cancle the callback service which exported before. channel :"
+ ". The new callback service will not work !!! you can cancel the callback service which exported before. channel :"
+ channel);
} else {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void testDifferentClassLoaderRequest() throws Exception {
Assertions.assertEquals(resultClazzCustom3, result1.getClass());
Assertions.assertNotEquals(classLoader2, result1.getClass().getClassLoader());

// invoke reqeust param should load from classLoader1 ( provider side classLoader )
// invoke request param should load from classLoader1 ( provider side classLoader )
Assertions.assertEquals(
classLoader1, innerRequestReference.get().getClass().getClassLoader());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ message ExtensionRequest {
message ServerReflectionResponse {
string valid_host = 1;
ServerReflectionRequest original_request = 2;
// The server set one of the following fields accroding to the message_request
// The server set one of the following fields according to the message_request
// in the request.
oneof message_response {
// This message is used to answer file_by_filename, file_containing_symbol,
Expand All @@ -91,7 +91,7 @@ message ServerReflectionResponse {
// that were previously sent in response to earlier requests in the stream.
FileDescriptorResponse file_descriptor_response = 4;

// This message is used to answer all_extension_numbers_of_type requst.
// This message is used to answer all_extension_numbers_of_type request.
ExtensionNumberResponse all_extension_numbers_response = 5;

// This message is used to answer list_services request.
Expand Down

0 comments on commit c833069

Please sign in to comment.