File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,14 @@ import (
8
8
"time"
9
9
10
10
"github.com/fastly/compute-sdk-go/fsthttp"
11
- "github.com/fastly/compute-sdk-go/x/fstctx"
12
11
)
13
12
14
13
func main () {
15
14
fsthttp .ServeFunc (func (ctx context.Context , w fsthttp.ResponseWriter , r * fsthttp.Request ) {
16
15
begin := time .Now ()
17
16
18
17
// Create a context with a 1-second timeout.
19
- ctx , cancel := fstctx .WithTimeout (ctx , 1 * time .Second )
18
+ ctx , cancel := context .WithTimeout (ctx , 1 * time .Second )
20
19
defer cancel ()
21
20
22
21
// Create the request, and set pass to true, to avoid caching.
Original file line number Diff line number Diff line change 6
6
//
7
7
// All packages in `x`, including package fstctx, should be considered
8
8
// temporary, experimental, and unstable.
9
+ //
10
+ // Deprecated: Use the standard library `context` package instead.
9
11
package fstctx
You can’t perform that action at this time.
0 commit comments