mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Rename GetMostRecentEvent for clarity
This commit is contained in:
parent
02e1371f37
commit
a9815e3b54
1 changed files with 2 additions and 2 deletions
|
@ -463,9 +463,9 @@ func (room *Room) GetStateEvent(eventType event.Type, stateKey string) *event.Ev
|
|||
return evt
|
||||
}
|
||||
|
||||
// GetMostRecentEvent returns the most recent state event for the given
|
||||
// MostRecentStateEventOfType returns the most recent state event for the given
|
||||
// type, or nil.
|
||||
func (room *Room) GetMostRecentEvent(eventType event.Type) *event.Event {
|
||||
func (room *Room) MostRecentStateEventOfType(eventType event.Type) *event.Event {
|
||||
room.Load()
|
||||
room.lock.RLock()
|
||||
defer room.lock.RUnlock()
|
||||
|
|
Loading…
Add table
Reference in a new issue