mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2026-01-23 19:37:12 -05:00
general code qualitity and readability. Mostlly no functional changes besides fixing potential null dereferece in SAM.go, avoiding potential (again) infitite loop in util.go.
This commit is contained in:
@@ -29,8 +29,6 @@ func (sam *PrimarySession) NewUniqueStreamSubSession(id string) (*stream.StreamS
|
||||
log.WithError(err).Error("Failed to create new generic sub-session")
|
||||
return nil, err
|
||||
}
|
||||
fromPort, toPort := common.RandPort(), common.RandPort()
|
||||
log.WithFields(logrus.Fields{"fromPort": fromPort, "toPort": toPort}).Debug("Generated random ports")
|
||||
return newFromPrimary(sam, conn), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user