Skip to content

Commit 7fe39b2

Browse files
committed
meta: rename to grafana-sync
1 parent fdd2d0f commit 7fe39b2

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: cargo doc --no-deps
2727

2828
- name: Add redirect
29-
run: echo '<meta http-equiv="refresh" content="0;url=graphsync/index.html">' > target/doc/index.html
29+
run: echo '<meta http-equiv="refresh" content="0;url=graphana-sync/index.html">' > target/doc/index.html
3030

3131
- name: Remove lock file
3232
run: rm target/doc/.lock

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727

2828
- name: Archive binary
2929
run: |
30-
BIN=graphsync
31-
TAR=graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
30+
BIN=grafana-sync
31+
TAR=grafana-sync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
3232
mkdir out
3333
cp target/${{ matrix.target }}/release/$BIN out/
3434
tar czf $TAR -C out $BIN
@@ -37,9 +37,9 @@ jobs:
3737
uses: softprops/action-gh-release@v2
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
40-
files: graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
40+
files: grafana-sync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
4141
- uses: actions/upload-artifact@v4
4242
if: failure()
4343
with:
4444
name: fallback-${{ matrix.target }}
45-
path: graphsync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz
45+
path: grafana-sync-${{ github.event.release.tag_name }}-${{ matrix.target }}.tar.gz

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "graphsync"
2+
name = "grafana-sync"
33
version = "0.1.0"
44
edition = "2021"
55

default.nix

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
with lib;
99
let
10-
cfg = config.services.graphsync;
10+
cfg = config.services.grafana-sync;
1111

12-
graphsync = pkgs.callPackage ./package.nix { };
12+
grafana-sync = pkgs.callPackage ./package.nix { };
1313
in
1414
{
1515
options = {
16-
services.graphsync = {
17-
enable = mkEnableOption "GraphSync";
16+
services.grafana-sync = {
17+
enable = mkEnableOption "Grafana Sync";
1818
configFile = mkOption {
1919
description = ''
2020
YAML formatted config file in the following format:
@@ -33,18 +33,18 @@ in
3333
};
3434
};
3535
config = {
36-
users.users."graphsync".isNormalUser = true;
36+
users.users."grafana-sync".isNormalUser = true;
3737

38-
systemd.services.graphsync = {
38+
systemd.services.grafana-sync = {
3939
after = [ "network.target" ];
4040
wantedBy = [ "multi-user.target" ];
41-
description = "GraphSync Grafana Syncing Service";
41+
description = "Grafana Syncing Service";
4242
serviceConfig = {
4343
Type = "simple";
44-
ExecStart = "${graphsync}/bin/graphsync ${cfg.configFile}";
44+
ExecStart = "${grafana-sync}/bin/grafana-sync ${cfg.configFile}";
4545
Restart = "on-failure";
4646
RestartSec = 5;
47-
User = "graphsync";
47+
User = "grafana-sync";
4848
};
4949
};
5050
};

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
description = "graphsync flake";
2+
description = "grafana-sync flake";
33

44
inputs = {
55
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";

package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}:
77

88
rustPlatform.buildRustPackage {
9-
pname = "graphsync";
9+
pname = "grafana-sync";
1010
version = "0.1.0";
1111

1212
src = ./.;
@@ -23,7 +23,7 @@ rustPlatform.buildRustPackage {
2323
#installPhase = ''
2424
# runHook preInstall
2525
# mkdir -p $out/bin
26-
# mv target/release/graphsync $out/bin
26+
# mv target/release/grafana-sync $out/bin
2727
# runHook postInstall
2828
#'';
2929
}

src/api/folders.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl GrafanaInstance {
4545
let client = self.client();
4646

4747
let folder_body = FolderBody {
48-
description: "autogenerated by graphsync".to_string(),
48+
description: "autogenerated by grafana-sync".to_string(),
4949
title: title.to_string(),
5050
// Could sync uid, but these folders might already exist so we're using a random one here
5151
// since it's not a reliable metric anyway

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ mod service;
1616
#[tokio::main]
1717
async fn main() {
1818
match run().await {
19-
Err(e) => error!("GraphSync exited with error: {}", e),
19+
Err(e) => error!("Grafana Sync exited with error: {}", e),
2020
_ => info!("Exiting."),
2121
}
2222
}

0 commit comments

Comments
 (0)