(host *p2p.P2P, mode string)
| 56 | } |
| 57 | |
| 58 | func connectP2PNetwork(host *p2p.P2P, mode string) { |
| 59 | switch strings.ToLower(mode) { |
| 60 | case "announce": |
| 61 | host.AnnounceConnect() |
| 62 | case "advertise": |
| 63 | host.AdvertiseConnect() |
| 64 | default: |
| 65 | host.AdvertiseConnect() |
| 66 | } |
| 67 | logrus.Info("Connected to P2P network") |
| 68 | } |
| 69 | |
| 70 | func asyncSQL(m *mysqlProxy) { |
| 71 | utils.GoWithRecover(func() { |
no test coverage detected