Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Akilan1999/p2p-rendering-computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Akilan1999 committed Feb 23, 2024
2 parents 7f1e9cb + c14a052 commit 72484da
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,30 @@ This project aims to create a peer to peer (p2p) network, where a user can use t
package main

import (
"github.com/Akilan1999/p2p-rendering-computation/abstractions"
"os"
"fmt"
"github.com/Akilan1999/p2p-rendering-computation/abstractions"
)

func main() {
// check if the config file exists
if _, err := os.Stat("config.json"); err != nil {
// Initialize with base p2prc config files
_, err := abstractions.Init(nil)
if err != nil {
return
}
}

// start p2prc
_, err := abstractions.Start()
if err != nil {
return
}
_, err := abstractions.Init(nil)
if err != nil {
fmt.Println(err)
return
}

// start p2prc
_, err = abstractions.Start()
if err != nil {
fmt.Println(err)
return
}

// Run server till termination
for {

}
}

```

### Export once this is added export P2PRC as environment paths
Expand Down

0 comments on commit 72484da

Please sign in to comment.