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 (
88 "time"
99
1010 "github.com/fastly/compute-sdk-go/fsthttp"
11- "github.com/fastly/compute-sdk-go/x/fstctx"
1211)
1312
1413func main () {
1514 fsthttp .ServeFunc (func (ctx context.Context , w fsthttp.ResponseWriter , r * fsthttp.Request ) {
1615 begin := time .Now ()
1716
1817 // 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 )
2019 defer cancel ()
2120
2221 // Create the request, and set pass to true, to avoid caching.
Original file line number Diff line number Diff line change 66//
77// All packages in `x`, including package fstctx, should be considered
88// temporary, experimental, and unstable.
9+ //
10+ // Deprecated: Use the standard library `context` package instead.
911package fstctx
You can’t perform that action at this time.
0 commit comments