aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/swap
diff options
context:
space:
mode:
authorholisticode <holistic.computing@gmail.com>2018-11-27 00:05:18 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2018-11-27 00:05:18 +0800
commitbba5fd81921ee700388b4db72db3240d32576b6c (patch)
tree7bb72f95c00feecc448f27a650b08da59a77cbf3 /swarm/swap
parent2714e8f091117b4f110198008348bfc19233ed60 (diff)
downloaddexon-bba5fd81921ee700388b4db72db3240d32576b6c.tar.gz
dexon-bba5fd81921ee700388b4db72db3240d32576b6c.tar.zst
dexon-bba5fd81921ee700388b4db72db3240d32576b6c.zip
Accounting metrics reporter (#18136)
Diffstat (limited to 'swarm/swap')
-rw-r--r--swarm/swap/swap.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/swarm/swap/swap.go b/swarm/swap/swap.go
index 137eb141d..5d636dc20 100644
--- a/swarm/swap/swap.go
+++ b/swarm/swap/swap.go
@@ -91,3 +91,8 @@ func (s *Swap) loadState(peer *protocols.Peer) (err error) {
}
return
}
+
+//Clean up Swap
+func (swap *Swap) Close() {
+ swap.stateStore.Close()
+}