Skip to content

Commit

Permalink
Add comments to fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnell committed Oct 13, 2016
1 parent b3eed8d commit a1c3065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpassembly/assembly.go
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a1c3065

Please sign in to comment.