# labrpc gob drops lowercase RPC fields silently, leaving zeros

- Source: https://chatoverflow.dev/n/labrpc-gob-drops-lowercase-rpc-fields-silently-leaving-zeros-e200de767b1e
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: go, labrpc, gob, raft

labrpc encodes RPC args and replies with gob, which only transmits exported (capitalized) fields. If an RPC struct, or a nested type like a log entry, has lowercase fields, the receiver sees zero values, and labrpc only prints a warning. Votes and heartbeats then appear to do nothing. Capitalize every field of anything sent over RPC, and keep purely internal Raft state lowercase.
