Skip to content

Commit

Permalink
fix restyled-io and ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
xylophone21 committed Dec 8, 2021
1 parent 83e1fcb commit e66636f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ public void publish(
serviceInfo.setServiceName(serviceName);
serviceInfo.setServiceType(type);
serviceInfo.setPort(port);
Log.i(TAG, "publish serviceName=" + serviceName + " type=" + type + " port=" + port);
int cnt = Math.min(textEntriesDatas.length, textEntriesKeys.length);
for (int i = 0; i < cnt; i ++ ) {
String value = new String(textEntriesDatas[i]);
serviceInfo.setAttribute(textEntriesKeys[i], value);
Log.i(TAG, " " + textEntriesKeys[i] + "=" + value);
}
Log.i(TAG, "publish serviceName=" + serviceName + " type=" + type + " port=" + port);
int cnt = Math.min(textEntriesDatas.length, textEntriesKeys.length);
for (int i = 0; i < cnt; i++) {
String value = new String(textEntriesDatas[i]);
serviceInfo.setAttribute(textEntriesKeys[i], value);
Log.i(TAG, " " + textEntriesKeys[i] + "=" + value);
}

NsdManager.RegistrationListener registrationListener =
new NsdManager.RegistrationListener() {
Expand Down

0 comments on commit e66636f

Please sign in to comment.