Changeset 788 in code for trunk/downstream.go


Ignore:
Timestamp:
Mar 3, 2022, 7:33:10 AM (3 years ago)
Author:
contact
Message:

downstream: panic when registering twice

This would be a soju bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r784 r788  
    12511251func (dc *downstreamConn) register(ctx context.Context) error {
    12521252        if dc.registered {
    1253                 return fmt.Errorf("tried to register twice")
     1253                panic("tried to register twice")
    12541254        }
    12551255
Note: See TracChangeset for help on using the changeset viewer.