Skip to content

Commit d070755

Browse files
committed
去掉无用输出
1 parent fa5e611 commit d070755

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

bash/bash.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package bash
33
import (
44
"bufio"
55
"bytes"
6-
"context"
76
"fmt"
87
"io"
98
"net"
@@ -17,7 +16,6 @@ import (
1716
"github.com/lainio/err2"
1817
. "github.com/lainio/err2/try"
1918
"github.com/vscode-lcode/lcode/v2/bash/webdav"
20-
"github.com/vscode-lcode/lcode/v2/util/err0"
2119
"go.opentelemetry.io/otel"
2220
)
2321

@@ -60,9 +58,6 @@ func (sh *Bash) Serve(l net.Listener) (err error) {
6058
}
6159

6260
func (sh *Bash) serve(conn net.Conn) (err error) {
63-
_, span := tracer.Start(context.Background(), "serve conn")
64-
defer span.End()
65-
defer err0.Record(&err, span)
6661
defer err2.Handle(&err, func() {
6762
conn.Close()
6863
})

0 commit comments

Comments
 (0)