nats连接与执行方法分离
This commit is contained in:
@@ -131,7 +131,7 @@ func TestNatsPublishRequest(t *testing.T) {
|
||||
}
|
||||
|
||||
// RPC 请求
|
||||
response, err := Request(ctx, "test.request", []byte("request"), 5*time.Second)
|
||||
response, err := CallRPC(ctx, "test.request", []byte("request"), 5*time.Second)
|
||||
if err != nil {
|
||||
t.Logf("RPC 请求失败: %v", err)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user