File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55__pycache__
66target
77service /uni-token-service
8- service /data.db
98frontend /public /release
109.eslintcache
1110sdk /node /README.md
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ func getServiceJsonPath() string {
3131 return filepath .Join (getServiceRootPath (), "service.json" )
3232}
3333
34+ func GetDbPath () string {
35+ return filepath .Join (getServiceRootPath (), "data.db" )
36+ }
37+
3438func SetupFileDiscovery (port int ) error {
3539 filePath := getServiceJsonPath ()
3640
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func (p *program) Start(s service.Service) error {
3636}
3737
3838func (p * program ) run () {
39- store .Init ("data.db" )
39+ store .Init (discovery . GetDbPath () )
4040
4141 p .logger .Info ("Service is running. Starting main logic..." )
4242
You can’t perform that action at this time.
0 commit comments