mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Supply arguments to strings.Replace in the right order
This commit is contained in:
parent
648b7c96d5
commit
a70eb939b7
|
|
@ -57,8 +57,8 @@ func main() {
|
|||
}
|
||||
|
||||
flag.Parse()
|
||||
*userID = strings.Replace("$SERVER_NAME", *serverName, *userID, 1)
|
||||
*roomID = strings.Replace("$SERVER_NAME", *serverName, *roomID, 1)
|
||||
*userID = strings.Replace(*userID, "$SERVER_NAME", *serverName, 1)
|
||||
*roomID = strings.Replace(*roomID, "$SERVER_NAME", *serverName, 1)
|
||||
|
||||
// Decode the ed25519 private key.
|
||||
privateKeyBytes, err := base64.RawStdEncoding.DecodeString(*privateKeyString)
|
||||
|
|
|
|||
Loading…
Reference in a new issue