Skip to content

Conversation

@DorKatzelnick
Copy link
Contributor

@DorKatzelnick DorKatzelnick commented Oct 19, 2025

  • change the verifier so that it also returns the type of a request (data / config / etc.. )
  • update the sig-filter, to extract the request type from the channel header

@HagarMeir HagarMeir force-pushed the verifierReturnsConfig branch from c738031 to 3b6f64f Compare October 23, 2025 08:37
@HagarMeir HagarMeir force-pushed the verifierReturnsConfig branch from 3b6f64f to 7a8a72d Compare October 26, 2025 06:52
Comment on lines +93 to +101
switch common.HeaderType(chdr.Type) {
case common.HeaderType_CONFIG_UPDATE:
reqType = "config_update"
case common.HeaderType_CONFIG:
reqType = "config"
case common.HeaderType_MESSAGE:
reqType = "data"
default:
return nil, reqType, fmt.Errorf("request header type is not config or data")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why won't we just use the enum as is? this way it is more readable; and we don't have to go through a custom translation of enum to string...

rules []Rule
lock sync.RWMutex
rules []Rule
structureRules []StructureRule
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we expecting more than one?

@tock-ibm tock-ibm mentioned this pull request Oct 26, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants