-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This manifested itself when encoding config values, which all map to strings. An extra new line would get added by json.Encode, which caused other things to break with confusing error messagges. Switching to json.Marshal seems to solve the problem.
- Loading branch information
1 parent
33ee860
commit 6310572
Showing
5 changed files
with
100 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
disable_cache = true | ||
disable_mlock = true | ||
ui = true | ||
|
||
listener "tcp" { | ||
address = "127.0.0.1:8200" | ||
} | ||
|
||
storage "raft" { | ||
path = "/storage/path/raft" | ||
node_id = "raft1" | ||
performance_multiplier = 1 | ||
foo = "bar" | ||
baz = true | ||
} | ||
|
||
cluster_addr = "127.0.0.1:8201" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"disable_cache": true, | ||
"disable_mlock": true, | ||
"ui":true, | ||
"listener": [{ | ||
"tcp": { | ||
"address": "127.0.0.1:8200" | ||
} | ||
}], | ||
"storage": { | ||
"raft": { | ||
"path": "/storage/path/raft", | ||
"node_id": "raft1", | ||
"performance_multiplier": 1, | ||
"foo": "bar", | ||
"baz": true | ||
} | ||
}, | ||
"cluster_addr": "127.0.0.1:8201" | ||
} |
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