Skip to content

Commit

Permalink
64-aligned on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Dec 10, 2021
1 parent 1af7123 commit 5e01e30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ var (

// Message represents an arpc Message.
type Message struct {
// 64-aligned on 32-bit
ref int32

Buffer []byte

ref int32
handler Handler
values map[interface{}]interface{}
}
Expand Down
4 changes: 3 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ type Server struct {
CurrLoad int64
MaxLoad int64

// 64-aligned on 32-bit
seq uint64

Codec codec.Codec
Handler Handler

Listener net.Listener

mux sync.Mutex

seq uint64
running bool
chStop chan error
clients map[*Client]util.Empty
Expand Down

0 comments on commit 5e01e30

Please sign in to comment.