Minor fixes

This commit is contained in:
世界 2022-07-30 14:50:33 +08:00
parent d3378a575c
commit 2ce09b6ffd
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
13 changed files with 87 additions and 24 deletions

View file

@ -6,6 +6,7 @@ import (
"os"
"time"
"github.com/sagernet/sing/common"
F "github.com/sagernet/sing/common/format"
"github.com/sagernet/sing/common/observable"
)
@ -55,6 +56,13 @@ func (f *observableFactory) UnSubscribe(sub observable.Subscription[Entry]) {
f.observer.UnSubscribe(sub)
}
func (f *observableFactory) Close() error {
return common.Close(
f.writer,
f.observer,
)
}
var _ ContextLogger = (*observableLogger)(nil)
type observableLogger struct {