Skip to content

Commit 7bbd605

Browse files
committed
fix(trackers, methods): remove use of @this() in accordance with style guide
1 parent 86df688 commit 7bbd605

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/replay/trackers.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ pub const ForkChoiceProcessedSlot = struct {
1515
/// Set the current processed slot (heaviest fork tip).
1616
/// Uses store() because this can decrease when the fork choice
1717
/// switches to a different fork with a lower slot.
18-
pub fn set(self: *@This(), new_slot: Slot) void {
18+
pub fn set(self: *ForkChoiceProcessedSlot, new_slot: Slot) void {
1919
self.slot.store(new_slot, .monotonic);
2020
}
2121

22-
pub fn get(self: *const @This()) Slot {
22+
pub fn get(self: *const ForkChoiceProcessedSlot) Slot {
2323
return self.slot.load(.monotonic);
2424
}
2525
};
2626

2727
pub const OptimisticallyConfirmedSlot = struct {
2828
slot: std.atomic.Value(Slot) = .init(0),
2929

30-
pub fn update(self: *@This(), new_slot: Slot) void {
30+
pub fn update(self: *OptimisticallyConfirmedSlot, new_slot: Slot) void {
3131
_ = self.slot.fetchMax(new_slot, .monotonic);
3232
}
3333

34-
pub fn get(self: *const @This()) Slot {
34+
pub fn get(self: *const OptimisticallyConfirmedSlot) Slot {
3535
return self.slot.load(.monotonic);
3636
}
3737
};

src/rpc/methods.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ pub const common = struct {
690690
pub const SlotHookContext = struct {
691691
slot_tracker: *const sig.replay.trackers.SlotTracker,
692692

693-
pub fn getSlot(self: @This(), _: std.mem.Allocator, params: GetSlot) !GetSlot.Response {
693+
pub fn getSlot(self: SlotHookContext, _: std.mem.Allocator, params: GetSlot) !GetSlot.Response {
694694
const config = params.config orelse common.CommitmentSlotConfig{};
695695
const commitment = config.commitment orelse .finalized;
696696
const slot = self.slot_tracker.getSlotForCommitment(commitment);

0 commit comments

Comments
 (0)