Browse Source

accounts/keystore: assign schema as const instead of var (#16985)

Wenbiao Zheng 7 năm trước cách đây
mục cha
commit
c95e4a80d1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      accounts/keystore/keystore.go

+ 1 - 1
accounts/keystore/keystore.go

@@ -50,7 +50,7 @@ var (
 var KeyStoreType = reflect.TypeOf(&KeyStore{})
 
 // KeyStoreScheme is the protocol scheme prefixing account and wallet URLs.
-var KeyStoreScheme = "keystore"
+const KeyStoreScheme = "keystore"
 
 // Maximum time between wallet refreshes (if filesystem notifications don't work).
 const walletRefreshCycle = 3 * time.Second