diff --git a/doc/replayer/replayer-conf.md b/doc/replayer/replayer-conf.md index 8d2707f..a963a92 100644 --- a/doc/replayer/replayer-conf.md +++ b/doc/replayer/replayer-conf.md @@ -21,8 +21,8 @@ Replayer-Agent的配置文件都在 **[./replayer-agent/conf](../../replayer-age * addr = ":8998" # Replayer-Agent Web Server默认监听端口,可以修改 * handlerTimeout = 60000 # Handler timeout(ms), default 60000 * readHeaderTimeout = 2000 # Request header timeout(ms), default 2000 -* readTimeout = 5000 # Recieve http request timeout(ms), including the body, default 5000 -* writeTimeout = 21000 # Recieve http body and response timeout(ms), default 21000 +* readTimeout = 5000 # Receive http request timeout(ms), including the body, default 5000 +* writeTimeout = 21000 # Receive http body and response timeout(ms), default 21000 * idleTimeout = 60000 # Keep-alive timeout(ms), default 60000
diff --git a/recorder-agent/conf/app.toml b/recorder-agent/conf/app.toml index 81b9e78..03783d6 100644 --- a/recorder-agent/conf/app.toml +++ b/recorder-agent/conf/app.toml @@ -2,8 +2,8 @@ [http] http_addr = ":9003" # Listen ip:port, http server地址 handlerTimeout = 1000 # Handler timeout(ms), default 5000 -readTimeout = 1000 # Recieve http request timeout(ms), including the body -writeTimeout = 1000 # Recieve http body and response timeout(ms) +readTimeout = 1000 # Receive http request timeout(ms), including the body +writeTimeout = 1000 # Receive http body and response timeout(ms) idleTimeout = 5000 # Keep-alive timeout(ms) [log] diff --git a/recorder/koala_grpc/recording/id.go b/recorder/koala_grpc/recording/id.go index 38c05e9..25aee75 100644 --- a/recorder/koala_grpc/recording/id.go +++ b/recorder/koala_grpc/recording/id.go @@ -32,7 +32,7 @@ package recording // - Non configured, you don't need set a unique machine and/or data center id // - K-ordered // - Embedded time with 1 second precision -// - Unicity guaranted for 16,777,216 (24 bits) unique ids per second and per host/process +// - Unicity guaranteed for 16,777,216 (24 bits) unique ids per second and per host/process // // Best used with xlog's RequestIDHandler (https://godoc.org/github.com/rs/xlog#RequestIDHandler). // @@ -123,7 +123,7 @@ func randInt() uint32 { return uint32(b[0])<<16 | uint32(b[1])<<8 | uint32(b[2]) } -// New generates a globaly unique ID +// New generates a globally unique ID func newID() ID { var id ID // Timestamp, 4 bytes, big endian diff --git a/replayer-agent/conf/app.toml b/replayer-agent/conf/app.toml index 5db36ad..575128e 100644 --- a/replayer-agent/conf/app.toml +++ b/replayer-agent/conf/app.toml @@ -5,8 +5,8 @@ version = "1.0.2" addr = ":8998" # 默认agent启动端口,可以修改 handlerTimeout = 60000 # Handler timeout(ms), default 5000 readHeaderTimeout = 2000 # Request header timeout(ms), default 2000 -readTimeout = 5000 # Recieve http request timeout(ms), including the body, default 5000 -writeTimeout = 21000 # Recieve http body and response timeout(ms), default 10000 +readTimeout = 5000 # Receive http request timeout(ms), including the body, default 5000 +writeTimeout = 21000 # Receive http body and response timeout(ms), default 10000 idleTimeout = 60000 # Keep-alive timeout(ms), default 60000 [log] diff --git a/replayer-agent/control.sh b/replayer-agent/control.sh index 0bbf742..9f190df 100755 --- a/replayer-agent/control.sh +++ b/replayer-agent/control.sh @@ -127,7 +127,7 @@ function build() { printf "${info_msg}go mod download, please wait~ \n" go mod download if [ $? -ne 0 ]; then - printf "${error_msg}build failed at executing go mod download, please check \$GOPROXY or try agian!!!\n" + printf "${error_msg}build failed at executing go mod download, please check \$GOPROXY or try again!!!\n" exit 1 fi