diff options
Diffstat (limited to 'ipc/namedpipe')
-rw-r--r-- | ipc/namedpipe/file.go | 6 | ||||
-rw-r--r-- | ipc/namedpipe/namedpipe_test.go | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ipc/namedpipe/file.go b/ipc/namedpipe/file.go index 9c2481d..c5dd48a 100644 --- a/ipc/namedpipe/file.go +++ b/ipc/namedpipe/file.go @@ -22,8 +22,10 @@ import ( type timeoutChan chan struct{} -var ioInitOnce sync.Once -var ioCompletionPort windows.Handle +var ( + ioInitOnce sync.Once + ioCompletionPort windows.Handle +) // ioResult contains the result of an asynchronous IO operation type ioResult struct { diff --git a/ipc/namedpipe/namedpipe_test.go b/ipc/namedpipe/namedpipe_test.go index 0573d0f..84d2987 100644 --- a/ipc/namedpipe/namedpipe_test.go +++ b/ipc/namedpipe/namedpipe_test.go @@ -169,7 +169,7 @@ func TestDialAccessDeniedWithRestrictedSD(t *testing.T) { } } -func getConnection(cfg *namedpipe.ListenConfig) (client net.Conn, server net.Conn, err error) { +func getConnection(cfg *namedpipe.ListenConfig) (client, server net.Conn, err error) { pipePath := randomPipePath() if cfg == nil { cfg = &namedpipe.ListenConfig{} |