aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/testapi.go
diff options
context:
space:
mode:
authorethersphere <thesw@rm.eth>2018-06-20 20:06:27 +0800
committerethersphere <thesw@rm.eth>2018-06-22 03:10:31 +0800
commite187711c6545487d4cac3701f0f506bb536234e2 (patch)
treed2f6150f70b84b36e49a449082aeda267b4b9046 /swarm/api/testapi.go
parent574378edb50c907b532946a1d4654dbd6701b20a (diff)
downloaddexon-e187711c6545487d4cac3701f0f506bb536234e2.tar.gz
dexon-e187711c6545487d4cac3701f0f506bb536234e2.tar.zst
dexon-e187711c6545487d4cac3701f0f506bb536234e2.zip
swarm: network rewrite merge
Diffstat (limited to 'swarm/api/testapi.go')
-rw-r--r--swarm/api/testapi.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/swarm/api/testapi.go b/swarm/api/testapi.go
index 6631196c1..4c7d0982b 100644
--- a/swarm/api/testapi.go
+++ b/swarm/api/testapi.go
@@ -21,26 +21,26 @@ import (
)
type Control struct {
- api *Api
+ api *API
hive *network.Hive
}
-func NewControl(api *Api, hive *network.Hive) *Control {
+func NewControl(api *API, hive *network.Hive) *Control {
return &Control{api, hive}
}
-func (self *Control) BlockNetworkRead(on bool) {
- self.hive.BlockNetworkRead(on)
-}
-
-func (self *Control) SyncEnabled(on bool) {
- self.hive.SyncEnabled(on)
-}
-
-func (self *Control) SwapEnabled(on bool) {
- self.hive.SwapEnabled(on)
-}
-
-func (self *Control) Hive() string {
- return self.hive.String()
+//func (self *Control) BlockNetworkRead(on bool) {
+// self.hive.BlockNetworkRead(on)
+//}
+//
+//func (self *Control) SyncEnabled(on bool) {
+// self.hive.SyncEnabled(on)
+//}
+//
+//func (self *Control) SwapEnabled(on bool) {
+// self.hive.SwapEnabled(on)
+//}
+//
+func (c *Control) Hive() string {
+ return c.hive.String()
}