Change the size limit type to an int64

This commit is contained in:
2025-04-06 14:19:39 -04:00
parent f4f8039fa0
commit db10355c84
2 changed files with 8 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ import "io"
import "net"
// import "time"
const defaultSizeLimit = 1024 * 1024 // 1 megabyte
const defaultSizeLimit int64 = 1024 * 1024 // 1 megabyte
// Conn is a HOPP connection.
type Conn interface {
@@ -25,7 +25,7 @@ type Conn interface {
// SetSizeLimit sets a limit (in bytes) for how large messages can be.
// By default, this limit is 1 megabyte.
SetSizeLimit(limit int)
SetSizeLimit(limit int64)
}
// Trans is a HOPP transaction.