simonz-bq commented on code in PR #1700:
URL: https://github.com/apache/tinkerpop/pull/1700#discussion_r898466000


##########
gremlin-go/driver/request.go:
##########
@@ -83,6 +88,85 @@ func makeBytecodeRequest(bytecodeGremlin *Bytecode, 
traversalSource string, sess
        }
 }
 
+// allowedReqArgs contains the arguments that will be extracted from the
+// bytecode and sent with the request.
+var allowedReqArgs = map[string]bool{
+       "evaluationTimeout":       true,
+       "scriptEvaluationTimeout": true,
+       "batchSize":               true,
+       "requestId":               true,
+       "userAgent":               true,
+}
+
+// extractReqArgs extracts request arguments from the provided bytecode.
+func extractReqArgs(bytecode *Bytecode) map[string]interface{} {
+       args := make(map[string]interface{})
+
+       for _, insn := range bytecode.sourceInstructions {

Review Comment:
   Nit: It's good practice to avoid abbreviations. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to