Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
liuh-80 committed Jul 17, 2023
1 parent 2c0e5fd commit 2244233
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sonic_data_client/mixed_db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1151,11 +1151,10 @@ func (c *MixedDbClient) Capabilities() []gnmipb.ModelData {

func (c *MixedDbClient) Close() error {
for table, pt := range c.tableMap {
if strings.HasPrefix(table, DASH_TABLE_PREFIX) && c.zmqClient != nil {
log.V(2).Infof("Delete ZmqProducerStateTable: %s", table)
swsscommon.DeleteZmqProducerStateTable(pt.(swsscommon.ZmqProducerStateTable))
zpt, ok := pt.(swsscommon.ZmqProducerStateTable)
if ok {
swsscommon.DeleteZmqProducerStateTable(zpt)
} else {
log.V(2).Infof("Delete ProducerStateTable: %s", table)
swsscommon.DeleteProducerStateTable(pt)
}
}
Expand Down

0 comments on commit 2244233

Please sign in to comment.