mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
feat: string deserialization for prost enums (#2316)
Use pbjson to support string deserialization for enum fields
This allows TOML configs like:
chainType = "Inbound"
instead of:
chainType = 1
- Maintain backward compatibility with integer values
- Default serialization format is now string
This commit is contained in:
@@ -654,7 +654,7 @@ impl PeerConn {
|
||||
.and_then(|p| p.peer_public_key)
|
||||
}
|
||||
|
||||
async fn send_noise_msg<Msg: prost::Message>(
|
||||
async fn send_noise_msg<Msg: prost::Message + Debug>(
|
||||
&self,
|
||||
pb: Msg,
|
||||
packet_type: PacketType,
|
||||
|
||||
Reference in New Issue
Block a user