MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / Last

Method Last

IceFireDB-PubSub/pkg/router/types.go:39–44  ·  view source on GitHub ↗

Last returns the last handler in the chain. ie. the last handler is the main one.

()

Source from the content-addressed store, hash-verified

37
38// Last returns the last handler in the chain. ie. the last handler is the main one.
39func (c HandlersChain) Last() HandlerFunc {
40 if length := len(c); length > 0 {
41 return c[length-1]
42 }
43 return nil
44}

Callers 1

SyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected