Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

Commit be903fb

Browse files
committed
p9p: use new context package throughout
Signed-off-by: Stephen J Day <[email protected]>
1 parent f717cf6 commit be903fb

10 files changed

+10
-10
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- 1.6
4+
- 1.7
55

66
script:
77
- go test -coverprofile=coverage.txt -covermode=atomic -race

Diff for: channel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net"
1111
"time"
1212

13-
"golang.org/x/net/context"
13+
"context"
1414
)
1515

1616
// Channel defines the operations necessary to implement a 9p message channel

Diff for: client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package p9p
33
import (
44
"net"
55

6-
"golang.org/x/net/context"
6+
"context"
77
)
88

99
type client struct {

Diff for: context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package p9p
22

33
import (
4-
"golang.org/x/net/context"
4+
"context"
55
)
66

77
type contextKey string

Diff for: dispatcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package p9p
22

3-
import "golang.org/x/net/context"
3+
import "context"
44

55
// Handler defines an interface for 9p message handlers. A handler
66
// implementation could be used to intercept calls of all types before sending

Diff for: readdir.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package p9p
33
import (
44
"io"
55

6-
"golang.org/x/net/context"
6+
"context"
77
)
88

99
// ReaddirAll reads all the directory entries for the resource fid.

Diff for: server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"sync"
88
"time"
99

10-
"golang.org/x/net/context"
10+
"context"
1111
)
1212

1313
// TODO(stevvooe): Add net/http.Server-like type here to manage connections.

Diff for: session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package p9p
22

3-
import "golang.org/x/net/context"
3+
import "context"
44

55
// Session provides the central abstraction for a 9p connection. Clients
66
// implement sessions and servers serve sessions. Sessions can be proxied by

Diff for: transport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net"
88
"sync"
99

10-
"golang.org/x/net/context"
10+
"context"
1111
)
1212

1313
// roundTripper manages the request and response from the client-side. A

Diff for: version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package p9p
33
import (
44
"fmt"
55

6-
"golang.org/x/net/context"
6+
"context"
77
)
88

99
// NOTE(stevvooe): This file contains functions for negotiating version on the

0 commit comments

Comments
 (0)