Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Fix trimming bug that plagued GC
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Oswalt <[email protected]>
  • Loading branch information
Mierdin committed Apr 15, 2019
1 parent a2dbbe8 commit 9196a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/exp/resulthandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *server) handleResultVERIFY(result *scheduler.LessonScheduleResult) {

// handleResultDELETE runs in response to a scheduler deletion event by removing any tracked state at the API layer.
func (s *server) handleResultDELETE(result *scheduler.LessonScheduleResult) {
s.DeleteLiveLesson(strings.TrimRight(result.Uuid, "-ns"))
s.DeleteLiveLesson(strings.TrimSuffix(result.Uuid, "-ns"))
}

func (s *server) handleResultBOOP(result *scheduler.LessonScheduleResult) {}

0 comments on commit 9196a9b

Please sign in to comment.