func (ts tradeStore) Clean() {
	ts.m.Lock()
	defer ts.m.Unlock()
	for k, v := range ts.ts {
		if time.Now().Sub(v.Expiration) > 0 {
			delete(ts.ts, k)
		}
	}
}
// Clean will remove an expired item from the map
Clean will remove an expired item from the map
// Clean will remove an expired item from the map
func (ts tradeStore) Clean() {
	ts.m.Lock()
	defer ts.m.Unlock()
	for k, v := range ts.ts {
		if time.Now().Sub(v.Expiration) > 0 {
			delete(ts.ts, k)
		}
	}
}
func ( ts tradeStore ) Clean ( ) { ts . m . Lock ( ) defer ts . m . Unlock ( ) for k , v := range ts . ts { if time . Now ( ) . Sub ( v . Expiration ) > 0 { delete ( ts . ts , k ) } } }
Clean will remove an expired item from the map
Clean will remove an expired item from the map