From a1c3065f20e5974a7be1a89a6daeecf9e81b9adc Mon Sep 17 00:00:00 2001 From: Graeme Connell Date: Thu, 13 Oct 2016 09:35:33 -0600 Subject: [PATCH] Add comments to fix lint errors. --- tcpassembly/assembly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpassembly/assembly.go b/tcpassembly/assembly.go index 557de8165..50f64874f 100644 --- a/tcpassembly/assembly.go +++ b/tcpassembly/assembly.go @@ -201,6 +201,7 @@ func (p *StreamPool) connections() []*connection { return conns } +// FlushOptions provide options for flushing connections. type FlushOptions struct { T time.Time // If nonzero, only connections with data older than T are flushed CloseAll bool // If true, ALL connections are closed post flush, not just those that correctly see FIN/RST. @@ -232,7 +233,6 @@ type FlushOptions struct { // // Returns the number of connections flushed, and of those, the number closed // because of the flush. - func (a *Assembler) FlushWithOptions(opt FlushOptions) (flushed, closed int) { conns := a.connPool.connections() closes := 0