(ctx context.Context)
| 139 | } |
| 140 | |
| 141 | func getGraphNodeLevelFromCtx(ctx context.Context) int64 { |
| 142 | level, ok := ctx.Value(consts.CozeLoopGraphNodeLevel).(int64) |
| 143 | if ok { |
| 144 | return level |
| 145 | } |
| 146 | |
| 147 | return 0 |
| 148 | } |
| 149 | |
| 150 | func injectGraphNodeLevelToCtx(ctx context.Context, level int64) context.Context { |
| 151 | return context.WithValue(ctx, consts.CozeLoopGraphNodeLevel, level) |
no outgoing calls
no test coverage detected
searching dependent graphs…