|
@@ -250,7 +250,7 @@ func (reg *ChannelRegistry) deleteChannel(tx *buntdb.Tx, key string, info Regist
|
250
|
250
|
founder, _ := tx.Get(fmt.Sprintf(keyChannelFounder, key))
|
251
|
251
|
|
252
|
252
|
// to see if we're deleting the right channel, confirm the founder and the registration time
|
253
|
|
- if founder == info.Founder && registeredAt == info.RegisteredAt {
|
|
253
|
+ if founder == info.Founder && registeredAt.Unix() == info.RegisteredAt.Unix() {
|
254
|
254
|
for _, keyFmt := range channelKeyStrings {
|
255
|
255
|
tx.Delete(fmt.Sprintf(keyFmt, key))
|
256
|
256
|
}
|