mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 16:31:00 +00:00
Fix sorting (#77)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Types, Maybe } from '@dotstats/common';
|
||||
import { Types, Maybe, SortedCollection } from '@dotstats/common';
|
||||
|
||||
export class Node {
|
||||
public static compare(a: Node, b: Node): number {
|
||||
@@ -166,8 +166,7 @@ export interface State {
|
||||
timeDiff: Types.Milliseconds;
|
||||
subscribed: Maybe<Types.ChainLabel>;
|
||||
chains: Map<Types.ChainLabel, Types.NodeCount>;
|
||||
nodes: Map<Types.NodeId, Node>;
|
||||
sortedNodes: Node[];
|
||||
nodes: SortedCollection<Types.NodeId, Node>;
|
||||
settings: Readonly<State.Settings>;
|
||||
pins: Readonly<Set<Types.NodeName>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user