-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-3: Fix Json output for empty network list
The generated pb.PeersMessage struct will be added "omitempty" tag automatically. So when marshal an empty PeersMessage, we get a "{}". Add a new tempoprary struct without "omitempty" to replace PeerMesssage. Now we can get "{"Peer": []}" Change-Id: I1fc310c951cf4e85a61660f2c45f700136dc5010 Signed-off-by: jiangyaoguo <jiangyaoguo@gmail.com>
- Loading branch information
1 parent
0363e1d
commit 845e795
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters