Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0098c88

Browse files
authoredSep 19, 2024··
Merge pull request #7 from NEEXP/main
fix typo: Prot -> Port
2 parents 1bebf87 + 056cf5f commit 0098c88

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ vi (app.json or app.dev.json or app.prod.json)
4949
},
5050
"Redis": {
5151
"Host": "127.0.0.1",
52-
"Prot": 6379,
52+
"Port": 6379,
5353
"DBIndex": 0,
5454
"UserName": "",
5555
"Password": ""

‎config/app.prod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"Redis": {
1515
"Host": "127.0.0.1",
16-
"Prot": 6379,
16+
"Port": 6379,
1717
"DBIndex": 0,
1818
"UserName": "",
1919
"Password": ""

‎config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ type dbConfigObj struct {
7373
}
7474
type redisConfig struct {
7575
Host string
76-
Prot uint
76+
Port uint
7777
DBIndex uint
7878
UserName string
7979
Password string

‎db/redis/redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func GetRedis() (redisD *redis.Client, err error) {
2222
}
2323
redisConfig := config.GetConfig().Redis
2424
redisDB = redis.NewClient(&redis.Options{
25-
Addr: redisConfig.Host + ":" + strconv.Itoa(int(redisConfig.Prot)),
25+
Addr: redisConfig.Host + ":" + strconv.Itoa(int(redisConfig.Port)),
2626
Username: redisConfig.UserName,
2727
Password: redisConfig.Password,
2828
DB: int(redisConfig.DBIndex),

0 commit comments

Comments
 (0)
Please sign in to comment.