http connector first impl
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"galaxy/client"
|
||||
mc "galaxy/model/client"
|
||||
"os"
|
||||
"os/signal"
|
||||
|
||||
@@ -26,14 +25,11 @@ func main() {
|
||||
}
|
||||
}()
|
||||
app := app.New()
|
||||
settings := mc.Settings{
|
||||
StoragePath: ".",
|
||||
}
|
||||
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||
defer cancel()
|
||||
|
||||
c, err := client.NewClient(ctx, nil, app, settings)
|
||||
c, err := client.NewClient(ctx, nil, nil, app)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user