Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop() not part of a trait #212

Open
dlangdon opened this issue May 22, 2019 · 0 comments
Open

stop() not part of a trait #212

dlangdon opened this issue May 22, 2019 · 0 comments

Comments

@dlangdon
Copy link

I'm attempting to use redis clients as polimorphic. For instance, by creating a client like this:

val client = {
    ...
    if(sentinelMaster.isEmpty)
      RedisClient(redisHost, redisPort)
    else
      SentinelMonitoredRedisClient(List(redisHost -> redisPort), sentinelMaster)
  }

but then, I can no longer do client.stop() since, while both types of clients have the method, it is not part of a common trait. Should be trivial to fix but I'm not familiar enough with the library yet, so I'm sure to break naming conventions.

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

No branches or pull requests

1 participant