Changeset 652 in code for trunk/upstream.go


Ignore:
Timestamp:
Oct 18, 2021, 5:15:15 PM (4 years ago)
Author:
contact
Message:

Add context args to Database interface

This is a mecanical change, which just lifts up the context.TODO()
calls from inside the DB implementations to the callers.

Future work involves properly wiring up the contexts when it makes
sense.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r649 r652  
    22
    33import (
     4        "context"
    45        "crypto"
    56        "crypto/sha256"
     
    15171518        if ch.ReattachOn == FilterMessage || (ch.ReattachOn == FilterHighlight && uc.network.isHighlight(msg)) {
    15181519                uc.network.attach(ch)
    1519                 if err := uc.srv.db.StoreChannel(uc.network.ID, ch); err != nil {
     1520                if err := uc.srv.db.StoreChannel(context.TODO(), uc.network.ID, ch); err != nil {
    15201521                        uc.logger.Printf("failed to update channel %q: %v", ch.Name, err)
    15211522                }
Note: See TracChangeset for help on using the changeset viewer.