Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2393adda
"tests/vscode:/vscode.git/clone" did not exist on "656e40eed262f61bed8cc5535b963ae1a6b300d7"
Commit
2393adda
authored
Sep 15, 2014
by
Gregory Petrosyan
Committed by
antirez
Oct 06, 2014
Browse files
Fix typos in comments
Closes #2002
parent
709ee6e8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
2393adda
...
@@ -1230,9 +1230,9 @@ void formatPeerId(char *peerid, size_t peerid_len, char *ip, int port) {
...
@@ -1230,9 +1230,9 @@ void formatPeerId(char *peerid, size_t peerid_len, char *ip, int port) {
}
}
/* A Redis "Peer ID" is a colon separated ip:port pair.
/* A Redis "Peer ID" is a colon separated ip:port pair.
* For IPv4 it's in the form x.y.z.k:por
k
, example: "127.0.0.1:1234".
* For IPv4 it's in the form x.y.z.k:por
t
, example: "127.0.0.1:1234".
* For IPv6 addresses we use [] around the IP part, like in "[::1]:1234".
* For IPv6 addresses we use [] around the IP part, like in "[::1]:1234".
* For Unix soc
e
kts we use path:0, like in "/tmp/redis:0".
* For Unix sock
e
ts we use path:0, like in "/tmp/redis:0".
*
*
* A Peer ID always fits inside a buffer of REDIS_PEER_ID_LEN bytes, including
* A Peer ID always fits inside a buffer of REDIS_PEER_ID_LEN bytes, including
* the null term.
* the null term.
...
@@ -1259,7 +1259,7 @@ int genClientPeerId(redisClient *client, char *peerid, size_t peerid_len) {
...
@@ -1259,7 +1259,7 @@ int genClientPeerId(redisClient *client, char *peerid, size_t peerid_len) {
}
}
/* This function returns the client peer id, by creating and caching it
/* This function returns the client peer id, by creating and caching it
* if client->pe
r
rid is NULL, otherwise returning the cached value.
* if client->pe
e
rid is NULL, otherwise returning the cached value.
* The Peer ID never changes during the life of the client, however it
* The Peer ID never changes during the life of the client, however it
* is expensive to compute. */
* is expensive to compute. */
char
*
getClientPeerId
(
redisClient
*
c
)
{
char
*
getClientPeerId
(
redisClient
*
c
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment