Skip to content

Conversation

wenxi-zeng
Copy link
Contributor

@wenxi-zeng wenxi-zeng commented Nov 17, 2021

  • fix identity doc where it says userid can be null
  • add reset function for user to call after logged out
  • add unit tests

addition:

  • fix find discrepancy behavior
  • add findAll
  • optimize segment log performance a bit
  • add unit test for find and findAll

@wenxi-zeng wenxi-zeng requested a review from prayansh November 19, 2021 20:52
fun <T: Plugin> find(pluginClass: KClass<T>): T? = synchronized(plugins) {
plugins.forEach {
if (it::class == pluginClass) {
if (pluginClass.java.isAssignableFrom(it::class.java)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm is this the most idiomatic way? what are we trying to achieve here?

@wenxi-zeng wenxi-zeng merged commit b65247c into main Nov 19, 2021
@wenxi-zeng wenxi-zeng deleted the wenxi/fix-identity-doc branch November 19, 2021 21:36
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