1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-07 04:27:18 +00:00

SetSelf -> SelfSet

This commit is contained in:
diamondburned (Forefront) 2020-01-17 23:10:42 -08:00
parent b2171d8784
commit 345ef44e6c
3 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ func (s *State) Self() (*discord.User, error) {
return nil, err return nil, err
} }
return u, s.Store.SetSelf(u) return u, s.Store.SelfSet(u)
} }
//// ////

View file

@ -43,7 +43,7 @@ type StoreGetter interface {
} }
type StoreModifier interface { type StoreModifier interface {
SetSelf(me *discord.User) error SelfSet(me *discord.User) error
ChannelSet(*discord.Channel) error ChannelSet(*discord.Channel) error
ChannelRemove(*discord.Channel) error ChannelRemove(*discord.Channel) error

View file

@ -70,7 +70,7 @@ func (s *DefaultStore) Self() (*discord.User, error) {
return &s.self, nil return &s.self, nil
} }
func (s *DefaultStore) SetSelf(me *discord.User) error { func (s *DefaultStore) SelfSet(me *discord.User) error {
s.mut.Lock() s.mut.Lock()
s.self = *me s.self = *me
s.mut.Unlock() s.mut.Unlock()