protocol should be pkg

This commit is contained in:
bel
2023-03-24 20:05:55 -06:00
parent ea7f2d8932
commit 9990273b19
4 changed files with 39 additions and 6 deletions

View File

@@ -16,6 +16,11 @@ func New(ctx context.Context, src raw.Raw) Wrap {
maker := func() Wrap {
return explicit{src: src}
}
if os.Getenv("WRAP_PROTOCOL") == "true" {
maker = func() Wrap {
return NewProtocol(src)
}
}
if os.Getenv("WRAP_BUFFERED") == "true" {
oldMaker := maker
maker = func() Wrap {