blob: e1139d7ccde6f2151e344eb09edc99b0a64020b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package internal
import (
"context"
"codeberg.org/snonux/gorum/internal/client"
"codeberg.org/snonux/gorum/internal/config"
"codeberg.org/snonux/gorum/internal/server"
)
func Run(ctx context.Context, configFile string) {
conf, err := config.New(configFile)
if err != nil {
panic(err)
}
go client.Start(ctx, conf)
server.Start(ctx, conf)
}
|