privatize closeCallback

ref #60
This commit is contained in:
Lucas Clemente 2016-05-15 15:58:35 +02:00
parent 0cb0ce8ad8
commit ce1f7b2aaf
3 changed files with 6 additions and 6 deletions

View file

@ -25,7 +25,7 @@ func (s *mockSession) HandlePacket(addr interface{}, hdr *publicHeader, data []b
func (s *mockSession) Run() {
}
func newMockSession(conn connection, v protocol.VersionNumber, connectionID protocol.ConnectionID, sCfg *handshake.ServerConfig, streamCallback StreamCallback, closeCallback CloseCallback) packetHandler {
func newMockSession(conn connection, v protocol.VersionNumber, connectionID protocol.ConnectionID, sCfg *handshake.ServerConfig, streamCallback StreamCallback, closeCallback closeCallback) packetHandler {
return &mockSession{
connectionID: connectionID,
}