Refactor bufio

This commit is contained in:
世界
2022-08-11 23:59:22 +08:00
parent c9226aeaaf
commit 97870c9288
14 changed files with 46 additions and 45 deletions

View File

@@ -6,7 +6,6 @@ import (
"os"
"time"
"github.com/sagernet/sing/common"
F "github.com/sagernet/sing/common/format"
)
@@ -42,10 +41,6 @@ func (f *simpleFactory) NewLogger(tag string) ContextLogger {
return &simpleLogger{f, tag}
}
func (f *simpleFactory) Close() error {
return common.Close(f.writer)
}
var _ ContextLogger = (*simpleLogger)(nil)
type simpleLogger struct {

View File

@@ -58,7 +58,6 @@ func (f *observableFactory) UnSubscribe(sub observable.Subscription[Entry]) {
func (f *observableFactory) Close() error {
return common.Close(
f.writer,
f.observer,
)
}