Skip to content

Commit

Permalink
refactor(oonimkall): expose the session close call
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Oct 25, 2024
1 parent a66b589 commit 412c35b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/oonimkall/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,13 @@ func (sess *Session) NewContextWithTimeout(timeout int64) *Context {
return &Context{cancel: cancel, ctx: ctx}
}

// Close closes the session. This is done by closing the embedded engine
// session
func (sess *Session) Close() error {
err := sess.sessp.Close()
return err
}

// GeolocateResults contains the results of session.Geolocate.
type GeolocateResults struct {
// ASN is the autonomous system number.
Expand Down

0 comments on commit 412c35b

Please sign in to comment.