mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
add spantrace to use-after-exit of RpcContext
This commit is contained in:
committed by
Aiden McClelland
parent
e6d1e49984
commit
e968a1cca7
@@ -336,7 +336,10 @@ impl Deref for RpcContext {
|
|||||||
type Target = RpcContextSeed;
|
type Target = RpcContextSeed;
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
if self.0.is_closed.load(Ordering::SeqCst) {
|
if self.0.is_closed.load(Ordering::SeqCst) {
|
||||||
panic!("RpcContext used after shutdown!");
|
panic!(
|
||||||
|
"RpcContext used after shutdown! {:?}",
|
||||||
|
tracing_error::SpanTrace::capture()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
&*self.0
|
&*self.0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user