From e187711c6545487d4cac3701f0f506bb536234e2 Mon Sep 17 00:00:00 2001 From: ethersphere Date: Wed, 20 Jun 2018 14:06:27 +0200 Subject: swarm: network rewrite merge --- swarm/api/testapi.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'swarm/api/testapi.go') 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() } -- cgit v1.2.3