fix(irc): panic when creating indexer with irc (#986)

fix(irc): store channel panic
This commit is contained in:
ze0s 2023-06-15 18:47:47 +02:00 committed by GitHub
parent 1f8804154e
commit 2af0021ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 18 deletions

View file

@ -122,7 +122,7 @@ func (m IrcMessage) Bytes() []byte {
}
type IrcRepo interface {
StoreNetwork(network *IrcNetwork) error
StoreNetwork(ctx context.Context, network *IrcNetwork) error
UpdateNetwork(ctx context.Context, network *IrcNetwork) error
StoreChannel(ctx context.Context, networkID int64, channel *IrcChannel) error
UpdateChannel(channel *IrcChannel) error