Skip to content

Commit

Permalink
remove deprecated option from examples
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Aug 14, 2021
1 parent fa96acb commit 6080bc5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func main() {
config := nflog.Config{
Group: 100,
Copymode: nflog.CopyPacket,
ReadTimeout: 10 * time.Millisecond,
}

nf, err := nflog.Open(&config)
Expand Down
5 changes: 2 additions & 3 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ func ExampleNflog_Register() {

//Set configuration parameters
config := nflog.Config{
Group: 100,
Copymode: nflog.CopyPacket,
ReadTimeout: 10 * time.Millisecond,
Group: 100,
Copymode: nflog.CopyPacket,
}

nf, err := nflog.Open(&config)
Expand Down
10 changes: 4 additions & 6 deletions nflog_linux_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import (
func TestLinuxNflog(t *testing.T) {
//Set configuration parameters
config := Config{
Group: 100,
Copymode: CopyPacket,
ReadTimeout: 10 * time.Millisecond,
Group: 100,
Copymode: CopyPacket,
}
// Open a socket to the netfilter log subsystem
nf, err := Open(&config)
Expand Down Expand Up @@ -45,9 +44,8 @@ func startNflog(ctx context.Context, t *testing.T, group uint16) (func(), error)
t.Helper()

config := Config{
Group: group,
Copymode: CopyPacket,
ReadTimeout: 10 * time.Millisecond,
Group: group,
Copymode: CopyPacket,
}

nf, err := Open(&config)
Expand Down

0 comments on commit 6080bc5

Please sign in to comment.