1 parent 842d024 commit a30b415Copy full SHA for a30b415
1 file changed
contextHandler/contextHandler_getset.go
@@ -164,3 +164,8 @@ func SetSession_UserRole(ctx context.Context, role string) context.Context {
164
logHandler.Trace.Printf("Setting User Role in Context: %v=%v", userRoleKey.name, role)
165
return context.WithValue(ctx, userRoleKey, role)
166
}
167
+
168
+func AddWorkerPoolToContext(ctx context.Context, pool pond.Pool) context.Context {
169
+ logHandler.Trace.Printf("Setting Worker Pool in Context: %v=%v", WorkerPoolKey.name, pool)
170
+ return context.WithValue(ctx, WorkerPoolKey, pool)
171
+}
0 commit comments