tweak ProtocolSender API
make SendProtocolMsg return an error; this isn't used at any call sites (yet) but is TRTTD.
This commit is contained in:
1 parent
b93ce1cea5
commit
cb6176fd8a
3 files changed
+6
-6
No files matched your search
+3
-1
@@ -121,10 +121,12 @@ func (conn *LocalConnection) Established() bool {
|
||||
return conn.established
|
||||
}
|
||||
|
||||
func (conn *LocalConnection) SendProtocolMsg(m ProtocolMsg) {
|
||||
func (conn *LocalConnection) SendProtocolMsg(m ProtocolMsg) error {
|
||||
if err := conn.sendProtocolMsg(m); err != nil {
|
||||
conn.Shutdown(err)
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ACTOR methods
|
||||
|
||||
Reference in new issue
Block a user