Changeset 777 in code for trunk


Ignore:
Timestamp:
Feb 8, 2022, 3:38:34 PM (3 years ago)
Author:
contact
Message:

Add context to upstreamConn.register

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r776 r777  
    19171917}
    19181918
    1919 func (uc *upstreamConn) register() {
    1920         ctx := context.TODO()
    1921 
     1919func (uc *upstreamConn) register(ctx context.Context) {
    19221920        uc.nick = GetNick(&uc.user.User, &uc.network.Network)
    19231921        uc.nickCM = uc.network.casemap(uc.nick)
  • trunk/user.go

    r776 r777  
    221221                }
    222222
    223                 uc.register()
     223                uc.register(context.TODO())
    224224                if err := uc.runUntilRegistered(context.TODO()); err != nil {
    225225                        text := err.Error()
Note: See TracChangeset for help on using the changeset viewer.