Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request docker-archive#33 from stevvooe/new-context
Browse files Browse the repository at this point in the history
p9p: use new context package throughout
  • Loading branch information
stevvooe authored Nov 14, 2016
2 parents f717cf6 + be903fb commit 529e2b2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- 1.6
- 1.7

script:
- go test -coverprofile=coverage.txt -covermode=atomic -race
Expand Down
2 changes: 1 addition & 1 deletion channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"net"
"time"

"golang.org/x/net/context"
"context"
)

// Channel defines the operations necessary to implement a 9p message channel
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package p9p
import (
"net"

"golang.org/x/net/context"
"context"
)

type client struct {
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package p9p

import (
"golang.org/x/net/context"
"context"
)

type contextKey string
Expand Down
2 changes: 1 addition & 1 deletion dispatcher.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package p9p

import "golang.org/x/net/context"
import "context"

// Handler defines an interface for 9p message handlers. A handler
// implementation could be used to intercept calls of all types before sending
Expand Down
2 changes: 1 addition & 1 deletion readdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package p9p
import (
"io"

"golang.org/x/net/context"
"context"
)

// ReaddirAll reads all the directory entries for the resource fid.
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"sync"
"time"

"golang.org/x/net/context"
"context"
)

// TODO(stevvooe): Add net/http.Server-like type here to manage connections.
Expand Down
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package p9p

import "golang.org/x/net/context"
import "context"

// Session provides the central abstraction for a 9p connection. Clients
// implement sessions and servers serve sessions. Sessions can be proxied by
Expand Down
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"sync"

"golang.org/x/net/context"
"context"
)

// roundTripper manages the request and response from the client-side. A
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package p9p
import (
"fmt"

"golang.org/x/net/context"
"context"
)

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

0 comments on commit 529e2b2

Please sign in to comment.