Compare commits

..
2 Commits
Author SHA1 Message Date
xrain a4bae0226e fix bug 2024-08-03 19:37:40 +08:00
xrain 15f74b6570 fix warning 2024-08-03 19:21:23 +08:00
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ public class SimApiStorage
/// <param name="path"></param> /// <param name="path"></param>
/// <returns></returns> /// <returns></returns>
/// <exception cref="Exception"></exception> /// <exception cref="Exception"></exception>
public string FullUrl(string path) public string? FullUrl(string? path)
{ {
if (string.IsNullOrEmpty(path)) return path; if (string.IsNullOrEmpty(path)) return path;
if(path.StartsWith("http://") || path.StartsWith("https://")) return path; if(path.StartsWith("http://") || path.StartsWith("https://")) return path;
+1 -1
View File
@@ -52,7 +52,7 @@ public partial class Synapse
} }
return Task.CompletedTask; return Task.CompletedTask;
}; };
SubRpcServerTopic(); SubEventServerTopic();
} }
private void SubEventServerTopic() private void SubEventServerTopic()
+1 -1
View File
@@ -93,7 +93,7 @@ public partial class Synapse
SubRpcServerTopic(); SubRpcServerTopic();
} }
public void SubRpcServerTopic() private void SubRpcServerTopic()
{ {
var rsSubOpts = MqttFactory.CreateSubscribeOptionsBuilder() var rsSubOpts = MqttFactory.CreateSubscribeOptionsBuilder()
.WithTopicFilter(o => .WithTopicFilter(o =>