feat(go): reuse parsed fields across projections
This commit is contained in:
@@ -318,11 +318,11 @@ func jsonString(value any) string {
|
||||
}
|
||||
|
||||
func parsedFieldsJSONString(env envelope.FrameEnvelope) string {
|
||||
fieldsEnv, ok := realtime.BuildFieldsEnvelope(env)
|
||||
if !ok || len(fieldsEnv.Fields) == 0 {
|
||||
fields, _, ok := realtime.ParsedFieldsForEnvelope(env)
|
||||
if !ok || len(fields) == 0 {
|
||||
return ""
|
||||
}
|
||||
return jsonString(fieldsEnv.Fields)
|
||||
return jsonString(fields)
|
||||
}
|
||||
|
||||
func floatField(env envelope.FrameEnvelope, key string) (float64, bool) {
|
||||
|
||||
Reference in New Issue
Block a user