Skip to content

Commit

Permalink
fix: cmd server address
Browse files Browse the repository at this point in the history
  • Loading branch information
halalala222 committed Aug 4, 2024
1 parent 12ad39d commit 3a47ba8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ package server

import (
"fmt"
"os"

"github.com/ByteStorage/FlyDB/config"
base "github.com/ByteStorage/FlyDB/db/grpc"
"os"
)

func StartServer() {
options := config.DefaultOptions
options.FIOType = config.MmapIOType
service, err := base.NewService(options, config.DefaultAddr)
service, err := base.NewService(options, "0.0.0.0:8999")
if err != nil {
fmt.Println("flydb start error: ", err)
return
Expand Down

0 comments on commit 3a47ba8

Please sign in to comment.