good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit d3f95505 authored by a's avatar a
Browse files

ok

parent 4cea9d87
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
*.tmp *.tmp
*.log *.log
*.test *.test
coverage.txt coverage.txt
report.xml report.xml
*.test.txt
...@@ -9,14 +9,14 @@ import ( ...@@ -9,14 +9,14 @@ import (
type Conn interface { type Conn interface {
Subscribe(ctx context.Context, namespace string, channel any, args any) (ClientSubscription, error) Subscribe(ctx context.Context, namespace string, channel any, args any) (ClientSubscription, error)
jsonrpc.StreamingConn jsonrpc.Conn
} }
func UpgradeConn(c jsonrpc.Conn, err error) (Conn, error) { func UpgradeConn(c jsonrpc.Conn, err error) (Conn, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if val, ok := c.(jsonrpc.StreamingConn); ok { if val, ok := c.(jsonrpc.Conn); ok {
engine := NewWrapClient(val) engine := NewWrapClient(val)
val.Mount(engine.Middleware) val.Mount(engine.Middleware)
return engine, nil return engine, nil
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
type Conn interface { type Conn interface {
Doer Doer
Notifier
BatchCaller BatchCaller
Mounter Mounter
...@@ -15,11 +16,6 @@ type Conn interface { ...@@ -15,11 +16,6 @@ type Conn interface {
Closed() <-chan struct{} Closed() <-chan struct{}
} }
type StreamingConn interface {
Conn
Notifier
}
type Doer interface { type Doer interface {
Do(ctx context.Context, result any, method string, params any) error Do(ctx context.Context, result any, method string, params any) error
} }
...@@ -33,5 +29,5 @@ type Notifier interface { ...@@ -33,5 +29,5 @@ type Notifier interface {
} }
type Mounter interface { type Mounter interface {
Mount(Middleware) Mount(Handler)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment