@@ -22,16 +22,11 @@ package connection
22
22
23
23
import (
24
24
"context"
25
- "time"
26
25
)
27
26
28
27
type ContextKey string
29
28
30
29
const (
31
- keyUseQueueTimeout ContextKey = "arangodb-use-queue-timeout"
32
- keyMaxQueueTime ContextKey = "arangodb-max-queue-time-seconds"
33
- keyDriverFlags ContextKey = "arangodb-driver-flags"
34
-
35
30
keyAsyncRequest ContextKey = "arangodb-async-request"
36
31
keyAsyncID ContextKey = "arangodb-async-id"
37
32
)
@@ -45,25 +40,6 @@ func contextOrBackground(ctx context.Context) context.Context {
45
40
return context .Background ()
46
41
}
47
42
48
- // WithArangoQueueTimeout is used to enable Queue timeout on the server side.
49
- // If WithArangoQueueTime is used, then its value takes precedence in other case value of ctx.Deadline will be taken
50
- // Deprecated: use ArangoDBConfiguration.ArangoQueueTimeoutEnabled
51
- func WithArangoQueueTimeout (parent context.Context , useQueueTimeout bool ) context.Context {
52
- return context .WithValue (contextOrBackground (parent ), keyUseQueueTimeout , useQueueTimeout )
53
- }
54
-
55
- // WithArangoQueueTime defines max queue timeout on the server side.
56
- // Deprecated: use ArangoDBConfiguration.ArangoQueueTimeoutSec
57
- func WithArangoQueueTime (parent context.Context , duration time.Duration ) context.Context {
58
- return context .WithValue (contextOrBackground (parent ), keyMaxQueueTime , duration )
59
- }
60
-
61
- // WithDriverFlags is used to configure additional flags for the `x-arango-driver` header.
62
- // Deprecated: use ArangoDBConfiguration.DriverFlags
63
- func WithDriverFlags (parent context.Context , value []string ) context.Context {
64
- return context .WithValue (contextOrBackground (parent ), keyDriverFlags , value )
65
- }
66
-
67
43
// WithAsync is used to configure a context to make an async operation - requires Connection with Async wrapper!
68
44
func WithAsync (parent context.Context ) context.Context {
69
45
return context .WithValue (contextOrBackground (parent ), keyAsyncRequest , true )
0 commit comments