Skip to content

Conversation

@zpencer
Copy link
Contributor

@zpencer zpencer commented Sep 21, 2018

Let's simplify the implementation to just disallow duplicates. This
makes it easier to maintain.

Background info: grpc/proposal#104

@zpencer zpencer requested a review from ejona86 September 21, 2018 18:19
}
perServiceLogs.put(service, binLog);
checkState(
!perServiceLogs.containsKey(service),
Copy link
Member

Choose a reason for hiding this comment

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

It seems we also need to check blacklistedMethods. Otherwise we could add the negative method first and then this positive method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This section is for per service policies like "service/*{h}" which defines a default config for all sub-methods not explicitly configured. Added some clarifying comments.

Let's simplify the impementation to just disallow duplicates. This
makes it easier to maintain.

Background info: grpc/proposal#104
@zpencer zpencer force-pushed the binlog-duplicate-rules branch from 7387e22 to f73cedf Compare September 21, 2018 20:25
@zpencer zpencer merged commit ed70594 into grpc:master Sep 21, 2018
@zpencer zpencer deleted the binlog-duplicate-rules branch September 21, 2018 22:59
@lock lock bot locked as resolved and limited conversation to collaborators Dec 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants