fix error response for web APIs

This commit is contained in:
ginuerzh committed 2024-06-04 22:05:13 +08:00
1 parent 754b2fdeac
commit 118ee91c95
31 files changed
+730 -249

No files matched your search

+4
View File
@@ -63,6 +63,10 @@ func (p *grpcPlugin) GetRoute(ctx context.Context, dst net.IP, opts ...router.Op
}
func (p *grpcPlugin) Close() error {
if p.conn == nil {
return nil
}
if closer, ok := p.conn.(io.Closer); ok {
return closer.Close()
}