mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-04 16:32:41 +08:00
add aof-use-rdb-preamble
This commit is contained in:
4
main.go
4
main.go
@@ -2,12 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/hdt3213/godis/config"
|
||||
"github.com/hdt3213/godis/lib/logger"
|
||||
"github.com/hdt3213/godis/lib/utils"
|
||||
RedisServer "github.com/hdt3213/godis/redis/server"
|
||||
"github.com/hdt3213/godis/tcp"
|
||||
"os"
|
||||
)
|
||||
|
||||
var banner = `
|
||||
@@ -50,7 +51,6 @@ func main() {
|
||||
} else {
|
||||
config.SetupConfig(configFilename)
|
||||
}
|
||||
|
||||
err := tcp.ListenAndServeWithSignal(&tcp.Config{
|
||||
Address: fmt.Sprintf("%s:%d", config.Properties.Bind, config.Properties.Port),
|
||||
}, RedisServer.MakeHandler())
|
||||
|
Reference in New Issue
Block a user