mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-06 23:56:53 +00:00
types/logger: release ArgWriter destination after use
Spotted after Brad showed me this utility in #15806. Updates #cleanup Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
parent
b95e8bf4a1
commit
51b17483ff
@ -323,6 +323,7 @@ func (fn ArgWriter) Format(f fmt.State, _ rune) {
|
||||
bw.Reset(f)
|
||||
fn(bw)
|
||||
bw.Flush()
|
||||
bw.Reset(io.Discard)
|
||||
argBufioPool.Put(bw)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user