edwardyoon / heimdallr

Heimdallr, a Large-scale chat application server based on Redis Pubsub and Akka's actor model.
Apache License 2.0
54 stars 14 forks source link

DefaultString protocol #39

Closed lkaihua closed 5 years ago

lkaihua commented 5 years ago
def protocol(roomUsers: Set[ActorRef], msg: String):Unit = {
    Messenger.broadcast(roomUsers, msg)
 }

Messenger is not defined. Would you please tell me how to import Messenger trait/object?

[info] Compiling 1 Scala source to D:\Github\heimdallr\target\scala-2.12\classes ...
[error] D:\Github\heimdallr\src\main\scala\chat\protocol\DefaultStringProtocol.scala:24:5: 
not found: value Messenger
[error]     Messenger.broadcast(roomUsers, msg)
[error]     ^
[error] one error found
[error] (Compile / compileIncremental) Compilation failed

Above error is from sbt compilcation result.

Thank you in advance!

lkaihua commented 5 years ago

@edwardyoon When this line is removed, the demo compiles and works. Is it something redundant?

jybaek commented 5 years ago

@lkaihua Thank you for your confirmation. Fixed it !

edwardyoon commented 5 years ago

Sorry for inconvenience to you. Fixed.